fix : show C and R
This commit is contained in:
@@ -37,6 +37,8 @@ export function AdminDropdown({
|
||||
"aria-label": ariaLabel,
|
||||
triggerProps,
|
||||
}: AdminDropdownProps) {
|
||||
const selectedOption = options.find((option) => option.value === value);
|
||||
|
||||
return (
|
||||
<Select
|
||||
value={value}
|
||||
@@ -46,7 +48,7 @@ export function AdminDropdown({
|
||||
}}
|
||||
>
|
||||
<SelectTrigger aria-label={ariaLabel} {...triggerProps}>
|
||||
<SelectValue placeholder={placeholder} />
|
||||
<SelectValue placeholder={placeholder}>{selectedOption?.label}</SelectValue>
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectGroup>
|
||||
|
||||
Reference in New Issue
Block a user