Skip to content

Commit

Permalink
rename modetoggle component to themetoggler
Browse files Browse the repository at this point in the history
  • Loading branch information
dEdmishka committed Jan 24, 2024
1 parent 427440b commit 39c731a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/auth/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import FormAuth from '@/components/pages/auth/form-auth'
import ImageCard from '@/components/pages/auth/image-card'
import Content from '@/components/ui/content'
import { Icons } from '@/components/ui/icons'
import { ModeToggle } from '@/components/ui/theme-toggler'
import { ThemeToggler } from '@/components/ui/theme-toggler'

export default function Auth() {
return (
Expand All @@ -15,7 +15,7 @@ export default function Auth() {
<div>
<div className="flex justify-between pb-2">
<h1 className="title-lg">Authentication</h1>
<ModeToggle />
<ThemeToggler />
</div>
<FormAuth className="mt-5" />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/theme-toggler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Moon, Sun } from 'lucide-react'
import { useTheme } from 'next-themes'
import * as React from 'react'

export function ModeToggle() {
export function ThemeToggler() {
const { setTheme } = useTheme()

return (
Expand Down

0 comments on commit 39c731a

Please sign in to comment.