mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
lint
This commit is contained in:
parent
7064da8b05
commit
d1a77dc5ec
1 changed files with 8 additions and 4 deletions
|
@ -47,9 +47,9 @@ export function SettingsContextProvider({
|
||||||
const [appearanceAuthorId, setAppearanceAuthorId] = useState<string | null>(
|
const [appearanceAuthorId, setAppearanceAuthorId] = useState<string | null>(
|
||||||
null
|
null
|
||||||
);
|
);
|
||||||
const [appearanceAuthorName, setAppearanceAuthorName] = useState<string | null>(
|
const [appearanceAuthorName, setAppearanceAuthorName] = useState<
|
||||||
null
|
string | null
|
||||||
);
|
>(null);
|
||||||
const [currentCategoryIndex, setCurrentCategoryIndex] = useState(0);
|
const [currentCategoryIndex, setCurrentCategoryIndex] = useState(0);
|
||||||
|
|
||||||
const [blockedUsers, setBlockedUsers] = useState<UserBlocks["blocks"]>([]);
|
const [blockedUsers, setBlockedUsers] = useState<UserBlocks["blocks"]>([]);
|
||||||
|
@ -75,7 +75,11 @@ export function SettingsContextProvider({
|
||||||
}, [appearanceTheme]);
|
}, [appearanceTheme]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (defaultAppearanceTheme && defaultAppearanceAuthorId && defaultAppearanceAuthorName) {
|
if (
|
||||||
|
defaultAppearanceTheme &&
|
||||||
|
defaultAppearanceAuthorId &&
|
||||||
|
defaultAppearanceAuthorName
|
||||||
|
) {
|
||||||
setAppearanceTheme(defaultAppearanceTheme);
|
setAppearanceTheme(defaultAppearanceTheme);
|
||||||
setAppearanceAuthorId(defaultAppearanceAuthorId);
|
setAppearanceAuthorId(defaultAppearanceAuthorId);
|
||||||
setAppearanceAuthorName(defaultAppearanceAuthorName);
|
setAppearanceAuthorName(defaultAppearanceAuthorName);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue