This commit is contained in:
YasinOnm08 2024-10-07 11:16:51 +02:00
parent 2e67f911c1
commit 0f610d3c18
11 changed files with 408 additions and 288 deletions

View file

@ -20,7 +20,7 @@ const ThemeDropdown: React.FC<{
value={selectedTheme}
onChange={(e) => {
const theme = e.target.value;
if (theme !== 'default') {
if (theme !== 'default' && typeof localStorage !== 'undefined') {
setSelectedTheme(theme);
localStorage.setItem('selectedTheme', theme);
}