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 { pageVariants } from '../lib/animations';
|
||||||
import { Search, Bell, Settings, Filter, ChevronDown } from 'lucide-react';
|
import { Search, Bell, Settings, Filter, ChevronDown } from 'lucide-react';
|
||||||
import ThemeToggle from './ThemeToggle';
|
import ThemeToggle from './ThemeToggle';
|
||||||
import DesignSwitch from './DesignSwitch';
|
|
||||||
import { UserMenu } from './layout/UserMenu';
|
import { UserMenu } from './layout/UserMenu';
|
||||||
import { NotificationBell } from './notifications/NotificationBell';
|
import { NotificationBell } from './notifications/NotificationBell';
|
||||||
|
|
||||||
|
|
@ -95,7 +95,6 @@ export default function Layout() {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<DesignSwitch />
|
|
||||||
<ThemeToggle />
|
<ThemeToggle />
|
||||||
<NotificationBell />
|
<NotificationBell />
|
||||||
<button className="lg:hidden p-2 text-[var(--color-text-tertiary)]" onClick={() => setMobileSheetOpen(true)}>
|
<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);
|
const ThemeContext = createContext<ThemeContextType | undefined>(undefined);
|
||||||
|
|
||||||
export function ThemeProvider({ children }: { children: React.ReactNode }) {
|
export function ThemeProvider({ children }: { children: React.ReactNode }) {
|
||||||
const [theme, setTheme] = useState<Theme>(() => {
|
// Aspirant is now the official theme - no switching available
|
||||||
return (localStorage.getItem('veridian-theme') as Theme) || 'default';
|
const [theme] = useState<Theme>('aspirant');
|
||||||
});
|
const setTheme = (_theme: Theme) => { }; // No-op, theme is locked
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
localStorage.setItem('veridian-theme', theme);
|
localStorage.setItem('veridian-theme', theme);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue