fix icon button for select as new icons

This commit is contained in:
filantrop 2022-09-01 23:56:47 +03:00
parent 24f44b4352
commit 4a5afdf01a

View File

@ -6,7 +6,7 @@ import { Fragment } from "react";
import { Listbox, Transition } from "@headlessui/react"; import { Listbox, Transition } from "@headlessui/react";
import classNames from "classnames"; import classNames from "classnames";
import "../index.css"; import "../index.css";
import { ReactComponent as SelectIcon } from "../assets/svg/select-arrow.svg"; import { ReactComponent as SelectIcon } from "../assets/svg/caret-down.svg";
import { Scrollbar } from "react-scrollbars-custom"; import { Scrollbar } from "react-scrollbars-custom";
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
@ -101,7 +101,7 @@ function Select<T>({
<SelectIcon <SelectIcon
className={`${ className={`${
open ? "rotate-180 transform" : "font-normal" open ? "rotate-180 transform" : "font-normal"
} h-2 w-3`} } h-3 w-4 fill-black hover:fill-black stroke-black`}
/> />
</span> </span>
</> </>
@ -114,12 +114,12 @@ function Select<T>({
leaveTo="opacity-0" leaveTo="opacity-0"
> >
<Listbox.Options className={`${SelectOptionsStyle}`}> <Listbox.Options className={`${SelectOptionsStyle}`}>
<Scrollbar {/* <Scrollbar
style={{ style={{
height: options.length * elementScrollSize, height: options.length * elementScrollSize,
maxHeight: maxScrollSize, maxHeight: maxScrollSize,
}} }}
> > */}
{options.map((option, id) => ( {options.map((option, id) => (
<Listbox.Option <Listbox.Option
key={id} key={id}
@ -139,7 +139,7 @@ function Select<T>({
}`} }`}
</Listbox.Option> </Listbox.Option>
))} ))}
</Scrollbar> {/* </Scrollbar> */}
</Listbox.Options> </Listbox.Options>
</Transition> </Transition>
</div> </div>