Skip to content

Commit

Permalink
[@mantine/core] Update color scheme script to use new local storage v…
Browse files Browse the repository at this point in the history
…alue
  • Loading branch information
rtivital committed Sep 18, 2023
1 parent e7a3237 commit 3196170
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const getScript = ({

export function ColorSchemeScript({
defaultColorScheme = 'light',
localStorageKey = 'mantine-color-scheme',
localStorageKey = 'mantine-color-scheme-value',
forceColorScheme,
...others
}: ColorSchemeScriptProps) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface LocalStorageColorSchemeManagerOptions {
}

export function localStorageColorSchemeManager({
key = 'mantine-color-scheme',
key = 'mantine-color-scheme-value',
}: LocalStorageColorSchemeManagerOptions = {}): MantineColorSchemeManager {
let handleStorageEvent: (event: StorageEvent) => void;

Expand Down

0 comments on commit 3196170

Please sign in to comment.