Align report filters and update work session flows
This commit is contained in:
parent
17c1de2272
commit
ff9d95746e
7 changed files with 106 additions and 83 deletions
|
|
@ -34,6 +34,7 @@ type SearchableComboboxProps = {
|
|||
scrollClassName?: string
|
||||
scrollProps?: React.HTMLAttributes<HTMLDivElement>
|
||||
prefix?: ReactNode
|
||||
align?: "left" | "center"
|
||||
}
|
||||
|
||||
export function SearchableCombobox({
|
||||
|
|
@ -54,6 +55,7 @@ export function SearchableCombobox({
|
|||
scrollClassName,
|
||||
scrollProps,
|
||||
prefix,
|
||||
align = "left",
|
||||
}: SearchableComboboxProps) {
|
||||
const [open, setOpen] = useState(false)
|
||||
const [search, setSearch] = useState("")
|
||||
|
|
@ -109,7 +111,7 @@ export function SearchableCombobox({
|
|||
>
|
||||
<span className="flex flex-1 items-center gap-2">
|
||||
{prefix ? <span className="inline-flex items-center text-neutral-400">{prefix}</span> : null}
|
||||
<span className="flex-1 truncate text-left">
|
||||
<span className={cn("flex-1 truncate", align === "center" ? "text-center" : "text-left")}>
|
||||
{renderValue ? (
|
||||
renderValue(selected)
|
||||
) : selected?.label ? (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue