mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
lint
This commit is contained in:
@@ -47,9 +47,9 @@ export function SettingsContextProvider({
|
||||
const [appearanceAuthorId, setAppearanceAuthorId] = useState<string | null>(
|
||||
null
|
||||
);
|
||||
const [appearanceAuthorName, setAppearanceAuthorName] = useState<string | null>(
|
||||
null
|
||||
);
|
||||
const [appearanceAuthorName, setAppearanceAuthorName] = useState<
|
||||
string | null
|
||||
>(null);
|
||||
const [currentCategoryIndex, setCurrentCategoryIndex] = useState(0);
|
||||
|
||||
const [blockedUsers, setBlockedUsers] = useState<UserBlocks["blocks"]>([]);
|
||||
@@ -75,7 +75,11 @@ export function SettingsContextProvider({
|
||||
}, [appearanceTheme]);
|
||||
|
||||
useEffect(() => {
|
||||
if (defaultAppearanceTheme && defaultAppearanceAuthorId && defaultAppearanceAuthorName) {
|
||||
if (
|
||||
defaultAppearanceTheme &&
|
||||
defaultAppearanceAuthorId &&
|
||||
defaultAppearanceAuthorName
|
||||
) {
|
||||
setAppearanceTheme(defaultAppearanceTheme);
|
||||
setAppearanceAuthorId(defaultAppearanceAuthorId);
|
||||
setAppearanceAuthorName(defaultAppearanceAuthorName);
|
||||
|
||||
Reference in New Issue
Block a user