refactor: Make Aspirant the official theme - remove toggle, lock to aspirant
This commit is contained in:
parent
f0db9d5e5f
commit
6c91d4cd42
2 changed files with 4 additions and 5 deletions
|
|
@ -14,7 +14,7 @@ import { Breadcrumbs } from './ui/Breadcrumbs';
|
|||
import { pageVariants } from '../lib/animations';
|
||||
import { Search, Bell, Settings, Filter, ChevronDown } from 'lucide-react';
|
||||
import ThemeToggle from './ThemeToggle';
|
||||
import DesignSwitch from './DesignSwitch';
|
||||
|
||||
import { UserMenu } from './layout/UserMenu';
|
||||
import { NotificationBell } from './notifications/NotificationBell';
|
||||
|
||||
|
|
@ -95,7 +95,6 @@ export default function Layout() {
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<DesignSwitch />
|
||||
<ThemeToggle />
|
||||
<NotificationBell />
|
||||
<button className="lg:hidden p-2 text-[var(--color-text-tertiary)]" onClick={() => setMobileSheetOpen(true)}>
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@ interface ThemeContextType {
|
|||
const ThemeContext = createContext<ThemeContextType | undefined>(undefined);
|
||||
|
||||
export function ThemeProvider({ children }: { children: React.ReactNode }) {
|
||||
const [theme, setTheme] = useState<Theme>(() => {
|
||||
return (localStorage.getItem('veridian-theme') as Theme) || 'default';
|
||||
});
|
||||
// Aspirant is now the official theme - no switching available
|
||||
const [theme] = useState<Theme>('aspirant');
|
||||
const setTheme = (_theme: Theme) => { }; // No-op, theme is locked
|
||||
|
||||
useEffect(() => {
|
||||
localStorage.setItem('veridian-theme', theme);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue