|
@@ -1,6 +1,5 @@
|
|
|
import React, { Component } from "react";
|
|
import React, { Component } from "react";
|
|
|
-import styled, { createGlobalStyle } from "styled-components";
|
|
|
|
|
-import { Redirect, Route, Switch } from "react-router-dom";
|
|
|
|
|
|
|
+import { Route, Redirect, Switch } from "react-router-dom";
|
|
|
|
|
|
|
|
import api from "shared/api";
|
|
import api from "shared/api";
|
|
|
import { Context } from "shared/Context";
|
|
import { Context } from "shared/Context";
|
|
@@ -208,44 +207,12 @@ export default class Main extends Component<PropsType, StateType> {
|
|
|
|
|
|
|
|
render() {
|
|
render() {
|
|
|
return (
|
|
return (
|
|
|
- <StyledMain>
|
|
|
|
|
- <GlobalStyle />
|
|
|
|
|
|
|
+ <>
|
|
|
{this.renderMain()}
|
|
{this.renderMain()}
|
|
|
<CurrentError currentError={this.context.currentError} />
|
|
<CurrentError currentError={this.context.currentError} />
|
|
|
- </StyledMain>
|
|
|
|
|
|
|
+ </>
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
Main.contextType = Context;
|
|
Main.contextType = Context;
|
|
|
-
|
|
|
|
|
-const GlobalStyle = createGlobalStyle`
|
|
|
|
|
- * {
|
|
|
|
|
- box-sizing: border-box;
|
|
|
|
|
- font-family: 'Work Sans', sans-serif;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- body {
|
|
|
|
|
- background: #202227;
|
|
|
|
|
- overscroll-behavior-x: none;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- a {
|
|
|
|
|
- color: #949eff;
|
|
|
|
|
- text-decoration: none;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- img {
|
|
|
|
|
- max-width: 100%;
|
|
|
|
|
- }
|
|
|
|
|
-`;
|
|
|
|
|
-
|
|
|
|
|
-const StyledMain = styled.div`
|
|
|
|
|
- height: 100vh;
|
|
|
|
|
- width: 100vw;
|
|
|
|
|
- position: fixed;
|
|
|
|
|
- top: 0;
|
|
|
|
|
- left: 0;
|
|
|
|
|
- background: #202227;
|
|
|
|
|
- color: white;
|
|
|
|
|
-`;
|
|
|