Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Commit 6294701

Browse files
committed
refactor. Move dummy class constant to proton-shared
1 parent 568bd46 commit 6294701

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

containers/themes/ThemeInjector.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ import React, { useState, useEffect } from 'react';
22
import { useMailSettings, useOrganization } from 'react-components';
33
import { getThemeIdentifier, getTheme, toStyle, isDarkTheme } from 'proton-shared/lib/themes/helpers';
44
import { PROTON_THEMES, DEFAULT_THEME } from 'proton-shared/lib/themes/themes';
5+
import { DARK_MODE_CLASS } from 'proton-shared/lib/constants';
56

67
const protonThemeIdentifiers = Object.values(PROTON_THEMES).map(({ identifier }) => identifier);
78

8-
const DARK_MODE_CLASS = 'isDarkMode';
9-
109
const ThemeInjector = () => {
1110
const [{ Theme: userTheme = '' } = {}] = useMailSettings();
1211
const [{ Theme: orgTheme = '' } = {}] = useOrganization();

0 commit comments

Comments
 (0)