chore(ui): migrate more code to typescript

This commit is contained in:
Łukasz Mierzwa
2020-06-29 16:14:53 +01:00
committed by Łukasz Mierzwa
parent 55170f8812
commit 4d4dd111c1
36 changed files with 392 additions and 205 deletions

View File

@@ -18,6 +18,7 @@ import {
ReactSelectStyles,
} from "Components/Theme/ReactSelect";
import { BodyTheme, ThemeContext } from "Components/Theme";
import { UIDefaults } from "./AppBoot";
import { ErrorBoundary } from "./ErrorBoundary";
import "Styles/ResetCSS.scss";
@@ -46,19 +47,9 @@ const FaviconBadge = React.lazy(() =>
}))
);
interface UIDefaults {
Refresh: number;
HideFiltersWhenIdle: boolean;
ColorTitlebar: boolean;
Theme: "light" | "dark" | "auto";
MinimalGroupWidth: number;
AlertsPerGroup: number;
CollapseGroups: "expanded" | "collapsed" | "collapsedOnMobile";
}
interface AppProps {
defaultFilters: Array<string>;
uiDefaults: UIDefaults;
uiDefaults: UIDefaults | null;
}
const App: FunctionComponent<AppProps> = ({ defaultFilters, uiDefaults }) => {