|
|
@@ -1,10 +1,12 @@
|
|
|
import React, { Component } from "react";
|
|
|
import { BrowserRouter } from "react-router-dom";
|
|
|
import PorterErrorBoundary from "shared/error_handling/PorterErrorBoundary";
|
|
|
-import styled, { createGlobalStyle } from "styled-components";
|
|
|
+import styled, { ThemeProvider, createGlobalStyle } from "styled-components";
|
|
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
|
|
|
|
import MainWrapper from "./main/MainWrapper";
|
|
|
+import midnight from "shared/themes/midnight";
|
|
|
+import standard from "shared/themes/standard";
|
|
|
|
|
|
const queryClient = new QueryClient();
|
|
|
|
|
|
@@ -12,14 +14,16 @@ export default class App extends Component {
|
|
|
render() {
|
|
|
return (
|
|
|
<QueryClientProvider client={queryClient}>
|
|
|
- <StyledMain>
|
|
|
- <GlobalStyle />
|
|
|
- <PorterErrorBoundary errorBoundaryLocation="globalErrorBoundary">
|
|
|
- <BrowserRouter>
|
|
|
- <MainWrapper />
|
|
|
- </BrowserRouter>
|
|
|
- </PorterErrorBoundary>
|
|
|
- </StyledMain>
|
|
|
+ <ThemeProvider theme={standard}>
|
|
|
+ <StyledMain>
|
|
|
+ <GlobalStyle />
|
|
|
+ <PorterErrorBoundary errorBoundaryLocation="globalErrorBoundary">
|
|
|
+ <BrowserRouter>
|
|
|
+ <MainWrapper />
|
|
|
+ </BrowserRouter>
|
|
|
+ </PorterErrorBoundary>
|
|
|
+ </StyledMain>
|
|
|
+ </ThemeProvider>
|
|
|
</QueryClientProvider>
|
|
|
);
|
|
|
}
|