joyent-portal/packages/ui-toolkit/src/styleguide/wrapper.js
Sérgio Ramos 8295bd6882 chore: initial lerna setup
this shall be a progressive process
2017-05-25 10:56:50 +01:00

28 lines
603 B
JavaScript

import React, { Component } from 'react';
import styled, { ThemeProvider, injectGlobal } from 'styled-components';
import theme from '../theme';
import Base, { global } from '../base';
const StyledBase = styled(Base)`
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>
);
}
}