diff --git a/src/components/dialog/ShuffleDialog.tsx b/src/components/dialog/ShuffleDialog.tsx index 94e4b6e..8b4c1c8 100644 --- a/src/components/dialog/ShuffleDialog.tsx +++ b/src/components/dialog/ShuffleDialog.tsx @@ -7,6 +7,7 @@ import { Dialog, DialogContent, DialogTrigger } from "@/components/dialog/Dialog import { Input } from "@/components/form/Input"; import { SearchFilter } from "@/components/search-filter/SearchFilter"; import { SearchFilterGroup } from "@/components/search-filter/SearchFilterGroup"; +import { SearchFilterMediaFormat } from "@/components/search-filter/SearchFilterMediaFormat"; import { Switcher, SwitcherOption } from "@/components/switcher/Switcher"; import { Text } from "@/components/text/Text"; import { Busy } from "@/components/utils/Busy"; @@ -46,6 +47,7 @@ interface ShuffleFormProps { function ShuffleForm({ onSuccess, onCancel }: ShuffleFormProps) { const [isBusy, setBusy] = useState(false); const [filterThemeType, setFilterThemeType] = useState(""); + const [filterMediaFormat, setFilterMediaFormat] = useState(null); const [filterAnimeYearMin, setFilterAnimeYearMin] = useState(""); const [filterAnimeYearMax, setFilterAnimeYearMax] = useState(""); @@ -59,6 +61,7 @@ function ShuffleForm({ onSuccess, onCancel }: ShuffleFormProps) { try { await playRandomThemes({ themeType: filterThemeType, + mediaFormat: filterMediaFormat ?? undefined, animeYearMin: parseInt(filterAnimeYearMin), animeYearMax: parseInt(filterAnimeYearMax), }); @@ -96,6 +99,7 @@ function ShuffleForm({ onSuccess, onCancel }: ShuffleFormProps) { inputProps={{ type: "number", placeholder: "2100" }} /> +