diff --git a/src/pages/homepage/components/SettingsButton.tsx b/src/pages/homepage/components/SettingsButton.tsx index 7251724..9fd6285 100644 --- a/src/pages/homepage/components/SettingsButton.tsx +++ b/src/pages/homepage/components/SettingsButton.tsx @@ -34,7 +34,9 @@ function SettingsButton() { const { data: allThemes, isFetched: isAllThemesFetched } = useQueryAPI({ endpoint: 'api/themes', }); - + const { data: themePlaylists } = useQueryAPI({ + endpoint: 'api/themePlaylists', + }); const { mutateAsync: wakeRequest } = useMutationAPI(); const [allThemeData, setAllThemeData] = useState([]); const [categories, setCategories] = useState([{ value: 'All', label: 'All' }]); @@ -52,8 +54,9 @@ function SettingsButton() { bookmarkFilter, setBookmarkFilter, isMobile, + currentThemePlaylist, + setCurrentThemePlaylist, } = useCommonHooks(); - const handleWakeRequest = () => { wakeRequest({ method: 'POST', @@ -191,6 +194,7 @@ function SettingsButton() { setCurrentTheme( currentTheme === 'random' ? theme.name : 'random', ); + setCurrentThemePlaylist('All'); }} > @@ -216,6 +220,33 @@ function SettingsButton() { Currently:{' '} {theme.name} +