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

@ -7,9 +7,7 @@ import DatePicker from 'react-datepicker';
import { Button, Form } from 'semantic-ui-react';
import { Input, Popup } from '../../lib/custom-ui';
import {
useDeepCompareCallback, useDidUpdate, useForm, useToggle,
} from '../../hooks';
import { useDidUpdate, useForm, useToggle } from '../../hooks';
import styles from './EditDueDateStep.module.css';
@ -65,7 +63,7 @@ const EditDueDateStep = React.memo(({
[setData, selectTimeField, t],
);
const handleSubmit = useDeepCompareCallback(() => {
const handleSubmit = useCallback(() => {
if (!nullableDate) {
dateField.current.select();
return;
@ -86,9 +84,9 @@ const EditDueDateStep = React.memo(({
}
onClose();
}, [defaultValue, onUpdate, onClose, data, nullableDate]);
}, [defaultValue, onUpdate, onClose, data, nullableDate, t]);
const handleClearClick = useDeepCompareCallback(() => {
const handleClearClick = useCallback(() => {
if (defaultValue) {
onUpdate(null);
}