feat: replace lucide icons
This commit is contained in:
parent
44f93d338e
commit
3c34307ab0
15 changed files with 457 additions and 204 deletions
|
|
@ -1,10 +1,10 @@
|
|||
'use client'
|
||||
|
||||
import * as React from 'react'
|
||||
import { Moon, Sun } from 'lucide-react'
|
||||
import { useTheme } from 'next-themes'
|
||||
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { IconMoon, IconSun } from '@/components/ui/icons'
|
||||
|
||||
export function ThemeToggle() {
|
||||
const { setTheme, theme } = useTheme()
|
||||
|
|
@ -21,9 +21,9 @@ export function ThemeToggle() {
|
|||
}}
|
||||
>
|
||||
{!theme ? null : theme === 'dark' ? (
|
||||
<Moon className="h-4 w-4 transition-all" />
|
||||
<IconMoon className="transition-all" />
|
||||
) : (
|
||||
<Sun className="h-4 w-4 transition-all" />
|
||||
<IconSun className="transition-all" />
|
||||
)}
|
||||
<span className="sr-only">Toggle theme</span>
|
||||
</Button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue