fix: types and getAvailableSites return val

This commit is contained in:
Derrick Hammer 2023-12-17 22:45:37 -05:00
parent ba5fc45b4a
commit 3b28616f63
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -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);