mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 07:37:11 +01:00
Added reports section.
This commit is contained in:
parent
ad918c5bba
commit
a5700d4a25
36 changed files with 422 additions and 43 deletions
|
|
@ -5,7 +5,7 @@ import { THEME_CONFIG } from 'lib/constants';
|
|||
|
||||
const selector = state => state.theme;
|
||||
|
||||
export default function useTheme() {
|
||||
export function useTheme() {
|
||||
const defaultTheme =
|
||||
typeof window !== 'undefined'
|
||||
? window?.matchMedia('(prefers-color-scheme: dark)')?.matches
|
||||
|
|
@ -34,3 +34,5 @@ export default function useTheme() {
|
|||
|
||||
return [theme, saveTheme];
|
||||
}
|
||||
|
||||
export default useTheme;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue