joyent-portal/packages/ui-toolkit/src/layout/root-container.js
Sérgio Ramos 882cb68ec2 feat(ui-toolkit): a more reusable ui-toolkit
- remove dependencies on redux-form, react-router-dom, and react-redux.
 - work with every font, and don't bundle fonts
 - don't bundle editor
2017-12-15 15:23:38 +00:00

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);