Skip to content

Commit

Permalink
rename ButtonThemeToggle component to theme-toggler
Browse files Browse the repository at this point in the history
  • Loading branch information
firehawk89 committed Jan 23, 2024
1 parent 9e1bd2d commit 2f385f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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 IconGolub from '@/components/ui/icons/IconGolub'
import ButtonThemeToggle from '@/components/ui/index/ButtonThemeToggle'
import ThemeToggler from '@/components/ui/index/theme-toggler'

export default function Auth() {
return (
Expand All @@ -15,7 +15,7 @@ export default function Auth() {
<div>
<h1 className="title-lg">Authentication</h1>
<FormAuth className="mt-5" />
<ButtonThemeToggle />
<ThemeToggler />
</div>
</div>
</Content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Button } from '@/components/ui/button'
import Theme, { THEME } from '@/types/enums/Theme'
import { useTheme } from 'next-themes'

const ButtonThemeToggle = () => {
const ThemeToggler = () => {
const { resolvedTheme, setTheme } = useTheme()

const toggleTheme = () => {
Expand All @@ -20,4 +20,4 @@ const ButtonThemeToggle = () => {
)
}

export default ButtonThemeToggle
export default ThemeToggler

0 comments on commit 2f385f3

Please sign in to comment.