mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-08-02 17:11:48 +00:00
Merged ChartView component into App to push state up.
Hide "print" and "download" buttons when not displaying a chart.
This commit is contained in:
@@ -6,6 +6,7 @@ import messages_pl from './translations/pl.json';
|
||||
import {addLocaleData} from 'react-intl';
|
||||
import {App} from './app';
|
||||
import {detect} from 'detect-browser';
|
||||
import {HashRouter as Router, Route} from 'react-router-dom';
|
||||
import {IntlProvider} from 'react-intl';
|
||||
import './index.css';
|
||||
import 'semantic-ui-css/semantic.min.css';
|
||||
@@ -30,7 +31,9 @@ if (browser && browser.name === 'ie') {
|
||||
} else {
|
||||
ReactDOM.render(
|
||||
<IntlProvider locale={language} messages={messages[language]}>
|
||||
<App />
|
||||
<Router>
|
||||
<Route component={App} />
|
||||
</Router>
|
||||
</IntlProvider>,
|
||||
document.querySelector('#root'),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user