basicList: declare selected prop

This commit is contained in:
hsjobeki 2022-12-03 17:43:52 +01:00
parent c46c532209
commit 1905030481

View File

@ -27,12 +27,13 @@ export type BasicListItem = {
export type BasicListProps = BasicDataViewProps & {
handleFilter: (t: NixType, mode: "from" | "to") => void;
preview: React.ReactNode;
selected?: string;
};
interface SelectOptionProps {
label: string;
handleChange: (value: string) => void;
selected?: string;
options: {
value: string;
label: string;