diff --git a/client/src/install/Setup/Devices.tsx b/client/src/install/Setup/Devices.tsx
index eb9ac12c..64c66150 100644
--- a/client/src/install/Setup/Devices.tsx
+++ b/client/src/install/Setup/Devices.tsx
@@ -1,7 +1,5 @@
import React from 'react';
-import { connect } from 'react-redux';
-import { reduxForm, formValueSelector } from 'redux-form';
import { Trans, withTranslation } from 'react-i18next';
import flow from 'lodash/flow';
@@ -10,7 +8,6 @@ import Guide from '../../components/ui/Guide';
import Controls from './Controls';
import AddressList from './AddressList';
-import { FORM_NAME } from '../../helpers/constants';
import { DhcpInterface } from '../../initialState';
interface DevicesProps {
@@ -19,7 +16,7 @@ interface DevicesProps {
dnsPort: number;
}
-let Devices = (props: DevicesProps) => (
+const Devices = ({ interfaces, dnsIp, dnsPort }: DevicesProps) => (
@@ -34,7 +31,7 @@ let Devices = (props: DevicesProps) => (
@@ -45,23 +42,6 @@ let Devices = (props: DevicesProps) => (
);
-const selector = formValueSelector('install');
-
-Devices = connect((state) => {
- const dnsIp = selector(state, 'dns.ip');
- const dnsPort = selector(state, 'dns.port');
-
- return {
- dnsIp,
- dnsPort,
- };
-})(Devices);
-
export default flow([
withTranslation(),
- reduxForm({
- form: FORM_NAME.INSTALL,
- destroyOnUnmount: false,
- forceUnregisterOnUnmount: true,
- }),
])(Devices);
diff --git a/client/src/install/Setup/Submit.tsx b/client/src/install/Setup/Submit.tsx
index 3a9c1e87..44af2c69 100644
--- a/client/src/install/Setup/Submit.tsx
+++ b/client/src/install/Setup/Submit.tsx
@@ -1,12 +1,9 @@
import React from 'react';
-import { connect } from 'react-redux';
-import { reduxForm, formValueSelector } from 'redux-form';
import { Trans, withTranslation } from 'react-i18next';
import flow from 'lodash/flow';
import Controls from './Controls';
-import { FORM_NAME } from '../../helpers/constants';
interface SubmitProps {
webIp: string;
@@ -17,7 +14,7 @@ interface SubmitProps {
openDashboard: (...args: unknown[]) => unknown;
}
-let Submit = (props: SubmitProps) => (
+const Submit = (props: SubmitProps) => (
@@ -29,27 +26,11 @@ let Submit = (props: SubmitProps) => (
+ {/* TODO props webIp webPort */}
);
-const selector = formValueSelector('install');
-
-Submit = connect((state) => {
- const webIp = selector(state, 'web.ip');
- const webPort = selector(state, 'web.port');
-
- return {
- webIp,
- webPort,
- };
-})(Submit);
-
export default flow([
withTranslation(),
- reduxForm({
- form: FORM_NAME.INSTALL,
- destroyOnUnmount: false,
- forceUnregisterOnUnmount: true,
- }),
])(Submit);
diff --git a/client/src/install/Setup/index.tsx b/client/src/install/Setup/index.tsx
index 1e145f17..2408c65e 100644
--- a/client/src/install/Setup/index.tsx
+++ b/client/src/install/Setup/index.tsx
@@ -89,9 +89,9 @@ const Setup = () => {
case 3:
return ;
case 4:
- return ;
+ return ;
case 5:
- return ;
+ return ;
default:
return false;
}