diff --git a/components/homepage/login.js b/components/homepage/login.js index c791c2b6..08f1d405 100644 --- a/components/homepage/login.js +++ b/components/homepage/login.js @@ -5,7 +5,6 @@ import useTranslation from "next-translate/useTranslation"; import { connect } from "react-redux"; import { Field, reduxForm } from "redux-form"; -import { getLogin } from "../../actions"; import { setLoggedInUserId } from "../../store/accountDetails/action"; import { parseCookies, setCookie, destroyCookie } from "nookies"; @@ -19,102 +18,6 @@ export const minLength = (errorMsg) => (value) => ? errorMsg //`Must be ${min} characters or more` : undefined; -const RenderTextfield = ({ - id, - className, - rows, - datafieldname, - name, - label, - input, - hint1, - hint2, - meta: { touched, error }, - ...custom -}) => { - return ( - <> -
{t("home:login-comingsoon-temp-1a")}{" "}
- {/* */}- {t("home:login-card-register-label")}{" "} - - {t("home:login-card-register-link")} - -
- */} - {/* */}{t("home:login-comingsoon-temp-2")} @@ -414,12 +217,4 @@ const mapDispatchToProps = (dispatch) => { }; }; -export default connect( - mapStateToProps, - mapDispatchToProps -)( - reduxForm({ - form: "loginForm", - destroyOnUnmount: false, - })(Login) -); +export default connect(mapStateToProps, mapDispatchToProps)(Login);