feat(ui): theme switching

This add "proper" dark mode using darkly bootstrap theme
This commit is contained in:
Łukasz Mierzwa
2019-11-23 17:23:43 +00:00
parent 45bff5a6ea
commit de43f1ac4a
135 changed files with 1295 additions and 905 deletions

View File

@@ -5,6 +5,8 @@ import { mount } from "enzyme";
import toDiffableHtml from "diffable-html";
import { Settings } from "Stores/Settings";
import { ThemeContext } from "Components/Theme";
import { ReactSelectColors, ReactSelectStyles } from "Components/MultiSelect";
import { AlertGroupSortConfiguration } from "./AlertGroupSortConfiguration";
let settingsStore;
@@ -18,7 +20,15 @@ afterEach(() => {
});
const FakeConfiguration = () => {
return mount(<AlertGroupSortConfiguration settingsStore={settingsStore} />);
return mount(
<ThemeContext.Provider
value={{
reactSelectStyles: ReactSelectStyles(ReactSelectColors.Light)
}}
>
<AlertGroupSortConfiguration settingsStore={settingsStore} />
</ThemeContext.Provider>
);
};
const ExpandSortLabelSuggestions = async () => {