William O'Beirne de7d4fbaa2 v3 Style Import (#151)
* Convert bootstrap to sass instead of checked in and less

* Darken body, adjust header.

* First pass at tab styles, each tab will need a lot of individual love tho.

* Update footer to main site content, improve responsiveness.

* Missing key added.

* Fix dropdowns.

* Convert GenerateWallet HTML over, still needs styling.

* Send form.

* Current rates styled.

* CurrencySwap form styles.

* SwapInfoHeader styled.

* Finish up swap restyling, minor usability improvements for mobile.

* Fix up notifications / alert customizations

* Import v3 variables.

* Fix notification spacing.

* Align input height base with buttons.

* Revert height base, add additional bootstrap overrides.

* Grid overrides.

* Move overrides to their own folder. Adjust naming.

* Fix inconsistencies.

* Style generate wallet pt 1.

* Style generate wallet pt 2

* Style generate wallet pt 3

* Fix swap

* Added some missing overries, fixed the fallout.

* Remove header text, indicate alpha version.

* Fix radio / checkbox weights.

* Bind => arrow

* Convert simpledropdown to proper form select, instead of weirdly implemented nonfuncitoning dropdown.

* Fix token balances buttons, footr icons.
2017-09-05 14:52:01 -05:00

79 lines
1.7 KiB
JavaScript

// @flow
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Footer, Header, AlphaAgreement } from 'components';
import Notifications from './Notifications';
import * as actions from 'actions/config';
class App extends Component {
props: {
// FIXME
children: any,
location: any,
router: any,
isMobile: boolean,
languageSelection: string,
nodeSelection: string,
gasPriceGwei: number,
changeLanguage: typeof actions.changeLanguage,
changeNode: typeof actions.changeNode,
changeGasPrice: typeof actions.changeGasPrice,
handleWindowResize: () => void
};
render() {
let {
children,
// APP
nodeSelection,
languageSelection,
gasPriceGwei,
changeLanguage,
changeNode,
changeGasPrice
} = this.props;
let headerProps = {
location,
languageSelection,
nodeSelection,
gasPriceGwei,
changeLanguage,
changeNode,
changeGasPrice
};
return (
<div className="page-layout">
<main>
<Header {...headerProps} />
<div className="Tab container">
{React.cloneElement(children, { languageSelection })}
</div>
<Footer />
</main>
<Notifications />
<AlphaAgreement />
</div>
);
}
}
function mapStateToProps(state) {
return {
nodeSelection: state.config.nodeSelection,
nodeToggle: state.config.nodeToggle,
languageSelection: state.config.languageSelection,
languageToggle: state.config.languageToggle,
gasPriceGwei: state.config.gasPriceGwei
};
}
export default connect(mapStateToProps, actions)(App);