Slight refactor

This commit is contained in:
Sean Edmunds
2025-01-17 16:16:31 -06:00
parent eef30a84e3
commit 265981bee7
27 changed files with 398 additions and 352 deletions

View File

@@ -1,4 +1,5 @@
import { ActionIcon, Group, Stack, Tabs, Text } from '@mantine/core';
import { useCommonHooks } from 'hooks';
import {
FiArrowLeftCircle,
FiBook,
@@ -19,8 +20,8 @@ import Personalization from './components/Personalization';
import SearchProviders from './components/SearchProviders';
import Themes from './components/Themes';
export function Settings({ theme, setTheme, allThemes }: any) {
const isMobile = window.matchMedia('(max-width: 600px)').matches;
export function Settings() {
const { isMobile } = useCommonHooks();
const navigate = useNavigate();
return (
<Stack px={'2rem'}>
@@ -76,7 +77,7 @@ export function Settings({ theme, setTheme, allThemes }: any) {
<Categories />
</Tabs.Panel>
<Tabs.Panel value='themes'>
<Themes theme={theme} setTheme={setTheme} allThemes={allThemes} />
<Themes />
</Tabs.Panel>
<Tabs.Panel value='providers'>
<SearchProviders />