mirror of
https://github.com/harivansh-afk/RAG-ui.git
synced 2026-04-17 05:00:20 +00:00
Update Settings.tsx
This commit is contained in:
parent
3fad32e256
commit
1c04f8f0b1
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { Card } from '../../components/ui/card';
|
import { Card } from '../../components/ui/card';
|
||||||
import { Label } from '../../components/ui/label';
|
import { Label } from '../../components/ui/label';
|
||||||
import { Switch } from '../../components/ui/Switch';
|
import { switch } from '../../components/ui/switch';
|
||||||
import { useTheme } from '../../contexts/ThemeContext';
|
import { useTheme } from '../../contexts/ThemeContext';
|
||||||
import { Button } from '../../components/ui/Button';
|
import { Button } from '../../components/ui/Button';
|
||||||
import { supabase } from '../../lib/supabase';
|
import { supabase } from '../../lib/supabase';
|
||||||
|
|
@ -58,7 +58,7 @@ function Settings() {
|
||||||
<Label>Dark Mode</Label>
|
<Label>Dark Mode</Label>
|
||||||
<p className="text-sm text-muted-foreground">Enable dark color theme</p>
|
<p className="text-sm text-muted-foreground">Enable dark color theme</p>
|
||||||
</div>
|
</div>
|
||||||
<Switch
|
<switch
|
||||||
checked={isDarkMode}
|
checked={isDarkMode}
|
||||||
onCheckedChange={toggleDarkMode}
|
onCheckedChange={toggleDarkMode}
|
||||||
className="data-[state=checked]:bg-gradient-to-r data-[state=checked]:from-purple-400 data-[state=checked]:to-purple-500"
|
className="data-[state=checked]:bg-gradient-to-r data-[state=checked]:from-purple-400 data-[state=checked]:to-purple-500"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue