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:
parent
e564729598
commit
2566ff376e
67 changed files with 1232 additions and 267 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue