1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-15 15:50:06 +02:00
copilot/legacy/frontend/src/app.js

31 lines
572 B
JavaScript
Raw Normal View History

2017-05-11 20:16:52 +03:00
import React, { Component } from 'react';
import { ApolloProvider } from 'react-apollo';
2017-05-16 16:46:04 +03:00
import { client, store } from '@state/store';
import Router from '@root/router';
2017-05-11 20:16:52 +03:00
2017-05-16 20:25:45 +03:00
import { injectGlobal } from 'styled-components';
import Base, { global } from '@ui/components/base';
2017-05-11 20:16:52 +03:00
class App extends Component {
2017-05-16 20:25:45 +03:00
componentWillMount() {
injectGlobal`
${global}
`;
}
2017-05-11 20:16:52 +03:00
render() {
return (
<ApolloProvider client={client} store={store} >
2017-05-16 20:25:45 +03:00
<article>
2017-05-11 20:16:52 +03:00
{Router}
2017-05-16 20:25:45 +03:00
</article>
2017-05-11 20:16:52 +03:00
</ApolloProvider>
);
}
}
2017-05-16 20:25:45 +03:00
2017-05-11 20:16:52 +03:00
export default App;