882cb68ec2
- remove dependencies on redux-form, react-router-dom, and react-redux. - work with every font, and don't bundle fonts - don't bundle editor
22 lines
445 B
JavaScript
22 lines
445 B
JavaScript
import { Component } from 'react';
|
|
import { withTheme, injectGlobal } from 'styled-components';
|
|
|
|
import global from '../base/global';
|
|
|
|
class RootContainer extends Component {
|
|
componentWillMount() {
|
|
const { theme = {} } = this.props;
|
|
|
|
// eslint-disable-next-line no-unused-expressions
|
|
injectGlobal`
|
|
${global({ theme })};
|
|
`;
|
|
}
|
|
|
|
render() {
|
|
return this.props.children;
|
|
}
|
|
}
|
|
|
|
export default withTheme(RootContainer);
|