fix: styling of dropdown component (#6440)
* fix: styling of dropdown component Signed-off-by: Udit Takkar <[email protected]> * Apply suggestions from code review * fix: use dropdown item in all pages Signed-off-by: Udit Takkar <[email protected]> * chore: undo Signed-off-by: Udit Takkar <[email protected]> Signed-off-by: Udit Takkar <[email protected]> Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
1 parent
34a61214d3
commit
636e88d467
17 files changed
+189
-183
No files matched your search
@@ -6,6 +6,7 @@ import {
|
||||
Dropdown,
|
||||
DropdownMenuContent,
|
||||
DropdownMenuItem,
|
||||
DropdownItem,
|
||||
DropdownMenuTrigger,
|
||||
Icon,
|
||||
TextField,
|
||||
@@ -54,7 +55,7 @@ export const TimeTimeUnitInput = (props: Props) => {
|
||||
<DropdownMenuContent>
|
||||
{timeUnitOptions.map((option, index) => (
|
||||
<DropdownMenuItem key={index} className="outline-none">
|
||||
<button
|
||||
{/* <button
|
||||
key={index}
|
||||
type="button"
|
||||
className="h-8 w-20 justify-start pl-3 text-left text-sm"
|
||||
@@ -63,7 +64,16 @@ export const TimeTimeUnitInput = (props: Props) => {
|
||||
form.setValue("timeUnit", option.value);
|
||||
}}>
|
||||
{option.label}
|
||||
</button>
|
||||
</button> */}
|
||||
<DropdownItem
|
||||
key={index}
|
||||
type="button"
|
||||
onClick={() => {
|
||||
setTimeUnit(option.value);
|
||||
form.setValue("timeUnit", option.value);
|
||||
}}>
|
||||
{option.label}
|
||||
</DropdownItem>
|
||||
</DropdownMenuItem>
|
||||
))}
|
||||
</DropdownMenuContent>
|
||||
|
||||
Reference in new issue
Block a user