mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 17:45:38 +01:00
Build svg into components.
This commit is contained in:
parent
fdc73268b7
commit
5682b4d217
64 changed files with 16267 additions and 176 deletions
|
|
@ -1,8 +1,7 @@
|
|||
import classNames from 'classnames';
|
||||
import { Button, Icon } from 'react-basics';
|
||||
import { useTheme } from '@/components/hooks';
|
||||
import Sun from '@/assets/sun.svg';
|
||||
import Moon from '@/assets/moon.svg';
|
||||
import { Icons } from '@/components/icons';
|
||||
import styles from './ThemeSetting.module.css';
|
||||
|
||||
export function ThemeSetting() {
|
||||
|
|
@ -15,7 +14,7 @@ export function ThemeSetting() {
|
|||
onClick={() => saveTheme('light')}
|
||||
>
|
||||
<Icon>
|
||||
<Sun />
|
||||
<Icons.Sun />
|
||||
</Icon>
|
||||
</Button>
|
||||
<Button
|
||||
|
|
@ -23,7 +22,7 @@ export function ThemeSetting() {
|
|||
onClick={() => saveTheme('dark')}
|
||||
>
|
||||
<Icon>
|
||||
<Moon />
|
||||
<Icons.Moon />
|
||||
</Icon>
|
||||
</Button>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue