mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +00:00
Update ThemeSwitcher.tsx
This commit is contained in:
parent
e222a52585
commit
04f78226c8
@ -22,16 +22,13 @@ const ThemeSwitcher = () => {
|
||||
}
|
||||
aria-label="Theme Switcher"
|
||||
>
|
||||
<span className="flex items-center">
|
||||
<ThemeIcon width={20} height={20} theme={theme} />
|
||||
<span
|
||||
className={cn('capitalize leading-none', {
|
||||
'text-sm ml-1.5': theme === 'system',
|
||||
'ml-2': theme !== 'system',
|
||||
})}
|
||||
>
|
||||
{theme}
|
||||
</span>
|
||||
<ThemeIcon width={20} height={20} theme={theme} />
|
||||
<span
|
||||
className={cn('capitalize leading-none ml-2', {
|
||||
'text-sm': theme === 'system',
|
||||
})}
|
||||
>
|
||||
{theme}
|
||||
</span>
|
||||
<span className="cursor-pointer">
|
||||
<ChevronRight
|
||||
|
Loading…
x
Reference in New Issue
Block a user