mirror of
https://github.com/yldio/copilot.git
synced 2025-01-08 18:10:12 +02:00
28 lines
594 B
JavaScript
28 lines
594 B
JavaScript
import React, { Component } from 'react';
|
|
import { ThemeProvider, injectGlobal } from 'styled-components';
|
|
import theme from '../theme';
|
|
import Base, { global } from '../base';
|
|
|
|
const StyledBase = Base.extend`
|
|
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>
|
|
);
|
|
}
|
|
}
|