diff --git a/app/components/settings/Settings.tsx b/app/components/settings/Settings.tsx index 23734f2..874ebe1 100644 --- a/app/components/settings/Settings.tsx +++ b/app/components/settings/Settings.tsx @@ -1,4 +1,3 @@ -//#region imports import React, { useState, useEffect } from 'react'; import { applyTheme } from './theme'; import { exportSettings, importSettings } from './settingUtils'; // Import utility functions @@ -35,8 +34,6 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = ( return false; // Default to false if item is null or empty }; - //#region variables - // Active section const [activeSection, setActiveSection] = useState(() => localStorage.getItem('activeSection') || 'general'); @@ -290,7 +287,6 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = ( { value: "'Zilla Slab Highlight', serif", label: 'Zilla Slab Highlight' }, ]; - //#region Start of the code const handleLogout = () => { localStorage.clear(); alert('Successfully logged out!'); @@ -383,11 +379,10 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = ( } }; - //#region rendered content + // Render settings content based on the active section const renderSettingsContent = () => { switch (activeSection) { - //#region general case 'general': return (