2017-05-18 21:21:33 +03:00
|
|
|
import React, { Component } from 'react';
|
2017-06-02 04:27:28 +03:00
|
|
|
import { ThemeProvider, injectGlobal } from 'styled-components';
|
2017-05-18 21:21:33 +03:00
|
|
|
import theme from '../theme';
|
|
|
|
import Base, { global } from '../base';
|
|
|
|
|
2017-05-25 17:59:58 +03:00
|
|
|
const StyledBase = Base.extend`
|
2017-05-18 21:21:33 +03:00
|
|
|
background-color: transparent;
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default class Wrapper extends Component {
|
|
|
|
componentWillMount() {
|
|
|
|
// eslint-disable-next-line no-unused-expressions
|
|
|
|
injectGlobal`
|
|
|
|
${global}
|
|
|
|
`;
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<ThemeProvider theme={theme}>
|
|
|
|
<StyledBase>
|
|
|
|
{this.props.children}
|
|
|
|
</StyledBase>
|
|
|
|
</ThemeProvider>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|