1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-25 16:19:47 +02:00

Add email and password change functionality for a current user, remove deep compare hooks

This commit is contained in:
Maksim Eltyshev 2019-10-18 08:06:34 +05:00
parent b53e5bf94c
commit 680d664279
67 changed files with 1232 additions and 267 deletions

View file

@ -6,11 +6,7 @@ import { useTranslation } from 'react-i18next';
import { Button, Form, Input } from 'semantic-ui-react';
import {
useClosableForm,
useDeepCompareCallback,
useDidUpdate,
useForm,
useToggle,
useClosableForm, useDidUpdate, useForm, useToggle,
} from '../../hooks';
import styles from './AddList.module.css';
@ -62,7 +58,7 @@ const AddList = React.forwardRef(({ children, onCreate }, ref) => {
close,
);
const handleSubmit = useDeepCompareCallback(() => {
const handleSubmit = useCallback(() => {
const cleanData = {
...data,
name: data.name.trim(),