Skip to content

Commit

Permalink
Merge pull request #98 from VampireChicken12/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
VampireChicken12 authored Nov 16, 2023
2 parents 59ffcc0 + 2781492 commit 07e3669
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
10 changes: 7 additions & 3 deletions src/components/Inputs/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,20 @@ const Select: React.FC<SelectProps> = ({ className, disabled, id, label, onChang
{selectedOption ? (
options.find((option) => option.value === selectedOption)?.element ? (
<div className="flex w-full items-center justify-between pr-4">
<span className={cn("text-white", disabledButtonClasses)}>{options.find((option) => option.value === selectedOption)?.label}</span>
<span className={cn("text-black dark:text-white", disabledButtonClasses)}>
{options.find((option) => option.value === selectedOption)?.label}
</span>
{options.find((option) => option.value === selectedOption)?.element}
</div>
) : (
<div className="flex w-full items-center justify-between pr-2">
<span className={cn("text-white", disabledButtonClasses)}>{options.find((option) => option.value === selectedOption)?.label}</span>
<span className={cn("text-black dark:text-white", disabledButtonClasses)}>
{options.find((option) => option.value === selectedOption)?.label}
</span>
</div>
)
) : (
<span className={cn("text-white", disabledButtonClasses)}>Select an option</span>
<span className={cn("text-black dark:text-white", disabledButtonClasses)}>Select an option</span>
)}
<Arrow rotation={isSelectVisible ? "up" : "down"} />
</button>
Expand Down
16 changes: 8 additions & 8 deletions src/components/Settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,42 +171,42 @@ export default function Settings({
});
const colorOptions: SelectOption[] = [
{
element: <div className={cn("m-2 h-2 w-2 rounded-[50%]", "bg-[red]")}></div>,
element: <div className={cn("m-2 h-3 w-3 rounded-[50%] border-black border-[1px] border-solid", "bg-[red]")}></div>,
label: red,
value: "red"
},
{
element: <div className={cn("m-2 h-2 w-2 rounded-[50%]", "bg-[green]")}></div>,
element: <div className={cn("m-2 h-3 w-3 rounded-[50%] border-black border-[1px] border-solid", "bg-[green]")}></div>,
label: green,
value: "green"
},
{
element: <div className={cn("m-2 h-2 w-2 rounded-[50%]", "bg-[blue]")}></div>,
element: <div className={cn("m-2 h-3 w-3 rounded-[50%] border-black border-[1px] border-solid", "bg-[blue]")}></div>,
label: blue,
value: "blue"
},
{
element: <div className={cn("m-2 h-2 w-2 rounded-[50%]", "bg-[yellow]")}></div>,
element: <div className={cn("m-2 h-3 w-3 rounded-[50%] border-black border-[1px] border-solid", "bg-[yellow]")}></div>,
label: yellow,
value: "yellow"
},
{
element: <div className={cn("m-2 h-2 w-2 rounded-[50%]", "bg-[orange]")}></div>,
element: <div className={cn("m-2 h-3 w-3 rounded-[50%] border-black border-[1px] border-solid", "bg-[orange]")}></div>,
label: orange,
value: "orange"
},
{
element: <div className={cn("m-2 h-2 w-2 rounded-[50%]", "bg-[purple]")}></div>,
element: <div className={cn("m-2 h-3 w-3 rounded-[50%] border-black border-[1px] border-solid", "bg-[purple]")}></div>,
label: purple,
value: "purple"
},
{
element: <div className={cn("m-2 h-2 w-2 rounded-[50%]", "bg-[pink]")}></div>,
element: <div className={cn("m-2 h-3 w-3 rounded-[50%] border-black border-[1px] border-solid", "bg-[pink]")}></div>,
label: pink,
value: "pink"
},
{
element: <div className={cn("m-2 h-2 w-2 rounded-[50%]", "bg-[white]")}></div>,
element: <div className={cn("m-2 h-3 w-3 rounded-[50%] border-black border-[1px] border-solid", "bg-[white]")}></div>,
label: white,
value: "white"
}
Expand Down

0 comments on commit 07e3669

Please sign in to comment.