mirror of
https://github.com/yldio/copilot.git
synced 2024-11-15 07:40:07 +02:00
8295bd6882
this shall be a progressive process
31 lines
572 B
JavaScript
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;
|