Let Storybook stories fetch theme
This commit is contained in:
parent
33090b5cbd
commit
ce35c870d4
4 changed files with 59 additions and 33 deletions
7
.storybook/StorybookThemeContext.js
Normal file
7
.storybook/StorybookThemeContext.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { createContext } from 'react';
|
||||
import { ThemeType } from '../ts/types/Util';
|
||||
|
||||
export const StorybookThemeContext = createContext(ThemeType.light);
|
Loading…
Add table
Add a link
Reference in a new issue