|
@@ -1,9 +1,9 @@
|
|
-import { useEffect, useState } from 'react';
|
|
|
|
|
|
+import { useEffect } from 'react';
|
|
import hookForm from 'hook-easy-form';
|
|
import hookForm from 'hook-easy-form';
|
|
import { useHistory } from 'react-router-dom';
|
|
import { useHistory } from 'react-router-dom';
|
|
import { useDispatch, useSelector } from 'react-redux';
|
|
import { useDispatch, useSelector } from 'react-redux';
|
|
|
|
|
|
-import { runAuth, runRegister } from 'store/auth/actions';
|
|
|
|
|
|
+import { runAuth } from 'store/auth/actions';
|
|
import Input from 'components/inputs/text-input/text-input';
|
|
import Input from 'components/inputs/text-input/text-input';
|
|
|
|
|
|
import classes from './auth.module.scss';
|
|
import classes from './auth.module.scss';
|
|
@@ -57,7 +57,7 @@ const Auth = () => {
|
|
|
|
|
|
return (
|
|
return (
|
|
<div className={classes.container}>
|
|
<div className={classes.container}>
|
|
- <form action="/adfsgfb" className={classes.form}>
|
|
|
|
|
|
+ <form action={submit} className={classes.form}>
|
|
{formArray.map(el => (
|
|
{formArray.map(el => (
|
|
<div className={classes.form} key={el.name}>
|
|
<div className={classes.form} key={el.name}>
|
|
<Input
|
|
<Input
|