fix: types and getAvailableSites return val
This commit is contained in:
parent
ba5fc45b4a
commit
3b28616f63
|
@ -15,11 +15,11 @@ import {
|
||||||
PopoverTrigger,
|
PopoverTrigger,
|
||||||
} from "@/components/ui/popover";
|
} from "@/components/ui/popover";
|
||||||
import { ChevronDownIcon } from "@heroicons/react/24/solid";
|
import { ChevronDownIcon } from "@heroicons/react/24/solid";
|
||||||
import useSWR from "swr";
|
|
||||||
import { getAvailableSites } from "@/utils";
|
import { getAvailableSites } from "@/utils";
|
||||||
|
import { SelectOptions } from "@/types.js";
|
||||||
|
|
||||||
export function SitesCombobox() {
|
export function SitesCombobox() {
|
||||||
const { statuses } = getAvailableSites();
|
const statuses = getAvailableSites();
|
||||||
const [open, setOpen] = React.useState(false);
|
const [open, setOpen] = React.useState(false);
|
||||||
const [selectedStatus, setSelectedStatus] =
|
const [selectedStatus, setSelectedStatus] =
|
||||||
React.useState<SelectOptions | null>(null);
|
React.useState<SelectOptions | null>(null);
|
||||||
|
|
Loading…
Reference in New Issue