Skip to content

Commit

Permalink
revert date, use client in windowWidth
Browse files Browse the repository at this point in the history
  • Loading branch information
Bl20052005 committed Nov 2, 2024
1 parent 581f0ff commit 0657cb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/site/src/app/schedule/ScheduleTimer/ScheduleTimer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface ScheduleProps {
}

const ScheduleTimer: React.FC<ScheduleProps> = ({ schedule }) => {
const [time, setTime] = useState(0);
const [time, setTime] = useState(Date.now());

useEffect(() => {
function updatePerSecond() {
Expand Down
2 changes: 2 additions & 0 deletions apps/site/src/lib/useWindowWidth.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client";

import { useState, useEffect } from "react";

export default function useWindowWidth() {
Expand Down

0 comments on commit 0657cb5

Please sign in to comment.