Skip to content

Commit

Permalink
Fixed switch theme not showing on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
luloxi committed Oct 22, 2024
1 parent bf30cc7 commit f177323
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/nextjs/components/SwitchTheme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ export const SwitchTheme = ({ className }: { className?: string }) => {

return (
<div
className={`flex space-x-2 h-8 items-center hover:bg-[#C9D8E5] dark:hover:bg-[#193048] justify-start w-full rounded-lg pl-3 text-sm ${className}`}
onClick={handleToggle}
className={`flex cursor-pointer space-x-2 h-8 items-center hover:bg-[#C9D8E5] dark:hover:bg-[#193048] justify-start w-full rounded-lg pl-3 text-sm ${className}`}
>
<button onClick={handleToggle} className="swap swap-rotate flex flex-row gap-2 justify-start items-center">
<button className="swap swap-rotate flex flex-row gap-2 justify-start items-center">
{isDarkMode ? <MoonIcon className="h-5 w-5" /> : <SunIcon className="h-5 w-5" />}
<span>Switch theme</span>
</button>
Expand Down

0 comments on commit f177323

Please sign in to comment.