1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-28 17:49:43 +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 e564729598
commit 2566ff376e
67 changed files with 1232 additions and 267 deletions

View file

@ -2,7 +2,7 @@ import React, { useCallback, useEffect, useRef } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { useDeepCompareEffect, useForceUpdate, usePrevious } from '../../hooks';
import { useForceUpdate, usePrevious } from '../../hooks';
import { formatTimer } from '../../utils/timer';
import styles from './Timer.module.css';
@ -50,7 +50,7 @@ const Timer = React.memo(({
clearInterval(interval.current);
}, []);
useDeepCompareEffect(() => {
useEffect(() => {
if (prevStartedAt) {
if (!startedAt) {
stop();