Skip to content

Commit cd67921

Browse files
committed
fixed formatting
1 parent 838dd94 commit cd67921

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/shared/DarkModeToggle.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ const DarkModeToggle = () => {
2727
setIsDarkMode(!isDarkMode);
2828
};
2929

30-
const trackWidth = 72;
31-
const thumbWidth = 28;
32-
const padding = 3;
30+
const trackWidth = 72;
31+
const thumbWidth = 28;
32+
const padding = 3;
3333

3434
const translateX = isDarkMode ? trackWidth - thumbWidth - padding : padding;
3535

@@ -40,7 +40,7 @@ const DarkModeToggle = () => {
4040
onMouseLeave={() => setIsHovered(false)}
4141
className="group relative inline-flex h-9 w-18 items-center rounded-full transition-all duration-500 focus:outline-none focus:ring-2 focus:ring-offset-1"
4242
style={{
43-
backgroundColor: isDarkMode ? '#1e293b' : '#bae6fd',
43+
backgroundColor: isDarkMode ? '#1e293b' : '#bae6fd',
4444
boxShadow: isDarkMode
4545
? '0 6px 16px rgba(30, 41, 59, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.05)'
4646
: '0 6px 16px rgba(186, 230, 253, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.1)',

0 commit comments

Comments
 (0)