Skip to content

Commit 6c59e14

Browse files
committed
refactor : themeToggleButton
1 parent dc0d49e commit 6c59e14

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

next/src/components/themeToggleButton.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,11 @@ export const ThemeToggleButton = () => {
99
const { theme, toggleTheme } = useTheme();
1010

1111
return (
12-
<div className="fixed right-4 bottom-6 text-sm"> {/* fixed 위치를 조정 */}
12+
<div className="fixed right-4 bottom-4 text-sm"> {/* fixed 위치를 조정 */}
1313
<button
1414
onClick={toggleTheme}
1515
className="flex items-center gap-2 px-4 py-2 rounded-md bg-gray-200 dark:bg-gray-800 text-black dark:text-white shadow-lg transition-colors duration-200"
1616
>
17-
{/* 텍스트 */}
18-
{theme === "light" ? "Switch to Dark Mode" : "Switch to Light Mode"}
19-
2017
{/* 아이콘 */}
2118
{theme === "light" ? (
2219
<SunIcon className="h-5 w-5"/>

0 commit comments

Comments
 (0)