Enable chart animation
This commit is contained in:
parent
1dfb8552f5
commit
7cd59a3404
|
|
@ -74,7 +74,7 @@ function PriceSimulationChart({
|
|||
* Keep the animation active only during the initial animation time,
|
||||
* but afterwards, deactivate to prevent the re-size ugly effect
|
||||
*/
|
||||
const [isAnimationActive, setIsAnimationActive] = useState(false);
|
||||
const [isAnimationActive, setIsAnimationActive] = useState(true);
|
||||
useEffect(() => {
|
||||
const timeout = setTimeout(() => {
|
||||
setIsAnimationActive(false);
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ export default function ResultParams({
|
|||
* Keep the animation active only during the initial animation time,
|
||||
* but afterwards, deactivate to prevent the re-size ugly effect
|
||||
*/
|
||||
const [isAnimationActive, setIsAnimationActive] = useState(false);
|
||||
const [isAnimationActive, setIsAnimationActive] = useState(true);
|
||||
useEffect(() => {
|
||||
const timeout = setTimeout(() => {
|
||||
setIsAnimationActive(false);
|
||||
|
|
|
|||
Loading…
Reference in New Issue