You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.1 KiB
50 lines
1.1 KiB
import React from 'react';
|
|
import { connect } from 'react-redux';
|
|
import { translate } from '../../../translate/translate';
|
|
import {
|
|
iguanaActiveHandle,
|
|
getAppConfig,
|
|
getAppInfo,
|
|
} from '../../../actions/actionCreators';
|
|
import Store from '../../../store';
|
|
|
|
import {
|
|
SettingsRender,
|
|
} from './settings.render';
|
|
|
|
/*
|
|
TODO:
|
|
1) pre-select active coin in add node tab
|
|
2) add fiat section
|
|
3) kickstart section
|
|
4) batch export/import wallet addresses
|
|
*/
|
|
class Settings extends React.Component {
|
|
constructor(props) {
|
|
super(props);
|
|
}
|
|
|
|
componentDidMount(props) {
|
|
if (!this.props.disableWalletSpecificUI) {
|
|
Store.dispatch(iguanaActiveHandle());
|
|
}
|
|
Store.dispatch(getAppConfig());
|
|
Store.dispatch(getAppInfo());
|
|
|
|
document.getElementById('section-iguana-wallet-settings').setAttribute('style', 'height:auto; min-height: 100%');
|
|
}
|
|
|
|
render() {
|
|
return SettingsRender.call(this);
|
|
}
|
|
}
|
|
|
|
const mapStateToProps = (state) => {
|
|
return {
|
|
Main: {
|
|
coins: state.Main.coins,
|
|
},
|
|
};
|
|
};
|
|
|
|
export default connect(mapStateToProps)(Settings);
|
|
|