fix(theme): prevent special theme from persisting outside holiday period

This commit is contained in:
Tom (plebeius.eth)
2025-01-26 23:29:26 +01:00
parent 87aefc7ba1
commit 65ed3dffd5
2 changed files with 22 additions and 1 deletions
+2
View File
@@ -49,6 +49,8 @@ const useTheme = (): [string, (theme: string) => void] => {
setIsEnabled(true);
setCurrentTheme('tomorrow');
updateThemeClass('tomorrow');
} else if (!isChristmas && isEnabled) {
setIsEnabled(false);
}
}, [isEnabled, setIsEnabled, params, pendingPostSubplebbitAddress, location.pathname, isInAllView, isInSubscriptionsView]);