2017-01-25 18:51:41 +01:00
|
|
|
// Copyright 2015-2017 Parity Technologies (UK) Ltd.
|
2016-11-22 11:54:20 +01:00
|
|
|
// This file is part of Parity.
|
|
|
|
|
|
|
|
// Parity is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
|
|
|
// Parity is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2017-05-16 16:01:11 +02:00
|
|
|
import React from 'react';
|
2017-07-21 15:46:53 +02:00
|
|
|
import ReactDOM from 'react-dom';
|
|
|
|
import injectTapEventPlugin from 'react-tap-event-plugin';
|
2017-03-10 13:31:57 +01:00
|
|
|
import { AppContainer } from 'react-hot-loader';
|
2016-11-22 11:54:20 +01:00
|
|
|
|
|
|
|
injectTapEventPlugin();
|
|
|
|
|
2017-05-16 16:01:11 +02:00
|
|
|
import Application from './Application';
|
2016-11-22 11:54:20 +01:00
|
|
|
|
2017-05-16 16:01:11 +02:00
|
|
|
import '@parity/shared/assets/fonts/Roboto/font.css';
|
|
|
|
import '@parity/shared/assets/fonts/RobotoMono/font.css';
|
2017-07-21 15:46:53 +02:00
|
|
|
import '@parity/dapps/style.css';
|
2016-11-22 11:54:20 +01:00
|
|
|
|
|
|
|
ReactDOM.render(
|
2017-03-10 13:31:57 +01:00
|
|
|
<AppContainer>
|
|
|
|
<Application />
|
|
|
|
</AppContainer>,
|
2016-11-22 11:54:20 +01:00
|
|
|
document.querySelector('#container')
|
|
|
|
);
|
2017-03-10 13:31:57 +01:00
|
|
|
|
|
|
|
if (module.hot) {
|
2017-05-16 16:01:11 +02:00
|
|
|
module.hot.accept('./Application/index.js', () => {
|
|
|
|
require('./Application/index.js');
|
2017-03-10 13:31:57 +01:00
|
|
|
|
|
|
|
ReactDOM.render(
|
|
|
|
<AppContainer>
|
|
|
|
<Application />
|
|
|
|
</AppContainer>,
|
|
|
|
document.querySelector('#container')
|
|
|
|
);
|
|
|
|
});
|
|
|
|
}
|