Commit 326fa33e authored by chechunchi's avatar chechunchi

optimize

parent 5c821d48
import "./index.scss"; import "./index.scss";
import React, { useEffect, useState } from "react"; import React, { useEffect, useState } from "react";
import AnimatedNumbers from "react-animated-numbers";
import { useSnapshot } from "valtio"; import { useSnapshot } from "valtio";
import { matStore } from "@/stores"; import { matStore } from "@/stores";
...@@ -29,7 +28,7 @@ export const Timer: React.FC = () => { ...@@ -29,7 +28,7 @@ export const Timer: React.FC = () => {
return ( return (
<div id="timer-container"> <div id="timer-container">
<div className="timer">{<AnimatedNumbers animateToNumber={time} />}</div> <div className="timer">{time}</div>
</div> </div>
); );
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment