diff --git a/.prettierrc b/.prettierrc
index fa51da2..a3c4bea 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -2,5 +2,6 @@
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
- "singleQuote": true
+ "singleQuote": true,
+ "jsxSingleQuote": true
}
diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx
index dc5369f..53a9ed9 100644
--- a/src/components/Footer.tsx
+++ b/src/components/Footer.tsx
@@ -1,9 +1,9 @@
-import { Source } from '@/components/Source'
import { ThemeSwitcher } from '@/components/ThemeSwitcher'
+import { Source } from '@/components/Source'
export const Footer = () => {
return (
-
+
diff --git a/src/components/Source.tsx b/src/components/Source.tsx
index 13f17c3..b3d3e77 100644
--- a/src/components/Source.tsx
+++ b/src/components/Source.tsx
@@ -1,16 +1,16 @@
-import { RiOpenSourceFill } from 'react-icons/ri'
+import { VscGithubInverted } from 'react-icons/vsc'
import { Button } from '@nextui-org/button'
export const Source = () => {
return (
)
}
diff --git a/src/components/ThemeSwitcher.tsx b/src/components/ThemeSwitcher.tsx
index 92dad63..97d606a 100644
--- a/src/components/ThemeSwitcher.tsx
+++ b/src/components/ThemeSwitcher.tsx
@@ -1,30 +1,29 @@
-import { BsSunFill, BsMoonFill } from 'react-icons/bs'
-import { useEffect, useState } from 'react'
-import { useTheme } from 'next-themes'
+import { VscColorMode } from 'react-icons/vsc'
import { Button } from '@nextui-org/button'
+import { useTheme } from 'next-themes'
export const ThemeSwitcher = () => {
- const [mounted, setMounted] = useState(false)
const { theme, setTheme } = useTheme()
const toggle = () => {
- if (theme === 'dark') {
- setTheme('light')
- } else {
- setTheme('dark')
+ switch (theme) {
+ case 'dark':
+ setTheme('light')
+ break
+ case 'light':
+ setTheme('dark')
+ break
+ default:
+ break
}
}
- useEffect(() => setMounted(true), [])
-
- if (!mounted) return null
-
return (
-