diff --git a/src/main/index.ts b/src/main/index.ts index 7b4ee618..3665c2b7 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -92,7 +92,9 @@ const handleDeepLinkPath = (uri?: string) => { const authorCode = url.searchParams.get("author"); if (themeName && authorCode) { - WindowManager.redirect(`settings?theme=${themeName}&author=${authorCode}`); + WindowManager.redirect( + `settings?theme=${themeName}&author=${authorCode}` + ); } } } catch (error) { diff --git a/src/renderer/src/context/settings/settings.context.tsx b/src/renderer/src/context/settings/settings.context.tsx index ca5af9a4..95c8623f 100644 --- a/src/renderer/src/context/settings/settings.context.tsx +++ b/src/renderer/src/context/settings/settings.context.tsx @@ -18,13 +18,13 @@ export interface SettingsContext { } export const settingsContext = createContext({ - updateUserPreferences: async () => { }, - setCurrentCategoryIndex: () => { }, - clearSourceUrl: () => { }, + updateUserPreferences: async () => {}, + setCurrentCategoryIndex: () => {}, + clearSourceUrl: () => {}, sourceUrl: null, currentCategoryIndex: 0, blockedUsers: [], - fetchBlockedUsers: async () => { }, + fetchBlockedUsers: async () => {}, appearanceTheme: null, appearanceAuthor: null, }); @@ -42,9 +42,7 @@ export function SettingsContextProvider({ const dispatch = useAppDispatch(); const [sourceUrl, setSourceUrl] = useState(null); const [appearanceTheme, setAppearanceTheme] = useState(null); - const [appearanceAuthor, setAppearanceAuthor] = useState( - null - ); + const [appearanceAuthor, setAppearanceAuthor] = useState(null); const [currentCategoryIndex, setCurrentCategoryIndex] = useState(0); const [blockedUsers, setBlockedUsers] = useState([]); diff --git a/src/renderer/src/pages/settings/aparence/settings-appearance.tsx b/src/renderer/src/pages/settings/aparence/settings-appearance.tsx index 4da0193f..d14b4fe7 100644 --- a/src/renderer/src/pages/settings/aparence/settings-appearance.tsx +++ b/src/renderer/src/pages/settings/aparence/settings-appearance.tsx @@ -9,7 +9,10 @@ interface SettingsAppearanceProps { appearanceAuthor: string | null; } -export const SettingsAppearance = ({ appearanceTheme, appearanceAuthor }: SettingsAppearanceProps) => { +export const SettingsAppearance = ({ + appearanceTheme, + appearanceAuthor, +}: SettingsAppearanceProps) => { const [themes, setThemes] = useState([]); const [isImportThemeModalVisible, setIsImportThemeModalVisible] = useState(false); @@ -40,7 +43,7 @@ export const SettingsAppearance = ({ appearanceTheme, appearanceAuthor }: Settin setIsImportThemeModalVisible(true); setImportTheme({ theme: appearanceTheme, - author: appearanceAuthor + author: appearanceAuthor, }); } }, [appearanceTheme, appearanceAuthor]);