You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
| 12345678910111213141516 |
- import { authScopeStringGetHelper } from "util/authScopeHelpers";
- import primary from "./primaryTheme/primaryTheme";
- import secondary from "./secondaryTheme/secondaryTheme";
- import { DARK_THEME } from "constants/themeConstants";
-
- export let getTheme = () => {
- let selectedThemeStorage = authScopeStringGetHelper("colorMode");
- if (selectedThemeStorage === DARK_THEME) {
- return { ...primary };
- }
- return { ...secondary };
- };
-
- let selectedTheme = getTheme();
-
- export default selectedTheme;
|