1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-15 07:40:07 +02:00
copilot/legacy/frontend/src/app.js
Sérgio Ramos 8295bd6882 chore: initial lerna setup
this shall be a progressive process
2017-05-25 10:56:50 +01:00

31 lines
572 B
JavaScript

import React, { Component } from 'react';
import { ApolloProvider } from 'react-apollo';
import { client, store } from '@state/store';
import Router from '@root/router';
import { injectGlobal } from 'styled-components';
import Base, { global } from '@ui/components/base';
class App extends Component {
componentWillMount() {
injectGlobal`
${global}
`;
}
render() {
return (
<ApolloProvider client={client} store={store} >
<article>
{Router}
</article>
</ApolloProvider>
);
}
}
export default App;