Skip to content

Commit 56a08da

Browse files
committed
fix: resolve console error when switching between light and dark modes
This commit addresses the issue where an error was logged in the console when the user switched between light and dark modes. The warning was caused by the inappropriate use of SVG tags in JSX. The solution involved correcting the SVG tag usage to comply with JSX syntax requirements. Closes #974
1 parent 947d3a0 commit 56a08da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/ThemeSwitch.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ const Monitor = () => (
3434
viewBox="0 0 20 20"
3535
fill="none"
3636
stroke="currentColor"
37-
stroke-width="2"
38-
stroke-linecap="round"
39-
stroke-linejoin="round"
37+
strokeWidth="2"
38+
strokeLinecap="round"
39+
strokeLinejoin="round"
4040
className="group:hover:text-gray-100 h-6 w-6"
4141
>
4242
<rect x="3" y="3" width="14" height="10" rx="2" ry="2"></rect>

0 commit comments

Comments
 (0)