diff --git a/client/src/install/Setup/Settings.js b/client/src/install/Setup/Settings.js index ff11f0ab..f8ff35a2 100644 --- a/client/src/install/Setup/Settings.js +++ b/client/src/install/Setup/Settings.js @@ -1,4 +1,4 @@ -import React, { Fragment } from 'react'; +import React, { Component, Fragment } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { Field, reduxForm, formValueSelector } from 'redux-form'; @@ -61,176 +61,188 @@ const renderInterfaces = (interfaces => ( }) )); -let Settings = (props) => { - const { - handleSubmit, - handleChange, - handleAutofix, - webIp, - webPort, - dnsIp, - dnsPort, - interfaces, - invalid, - config, - } = props; - const { - status: webStatus, - can_autofix: isWebFixAvailable, - } = config.web; - const { - status: dnsStatus, - can_autofix: isDnsFixAvailable, - } = config.dns; +class Settings extends Component { + componentDidMount() { + const { web, dns } = this.props.config; - return ( -