Skip to content

Commit

Permalink
fix: apos
Browse files Browse the repository at this point in the history
  • Loading branch information
stifskere committed Jul 28, 2024
1 parent 663a2e4 commit 604a79e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/footer-contact/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import {format, toZonedTime} from "date-fns-tz";
import "./index.css";

export default function FooterContact(): ReactElement {
const [second, setsecond]: StateTuple<number> = useState<number>(0);
const [second, setSecond]: StateTuple<number> = useState<number>(0);

useEffect((): (() => void) => {
const interval: NodeJS.Timeout = setInterval((): void => {
setsecond((last: number) => last > 60 ? 0 : last + 1);
setSecond((last: number) => last > 60 ? 0 : last + 1);
}, 1000);
return (): void => { clearInterval(interval); };
}, []);
Expand Down Expand Up @@ -42,7 +42,8 @@ export default function FooterContact(): ReactElement {
(<span>{formattedTime}</span>{timeDifference != 0
? `, ${Math.abs(timeDifference)} hours ${timeDifference > 0 ? "ahead" : "behind"}`
: ""}),
I'l reply <span>ASAP.</span></p>
I&apos;l reply <span>ASAP.</span>
</p>
</div>
</div>;
}

0 comments on commit 604a79e

Please sign in to comment.