Skip to content

Commit

Permalink
removed CDC
Browse files Browse the repository at this point in the history
  • Loading branch information
paul committed Jun 25, 2024
1 parent 458f0e9 commit 59fa65c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import QRCode from "qrcode.react"; // Import QRCode component
import { counterBox } from "./timer";

function App() {
const [countdown1, setCountdown1] = useState({
days: "00",
hours: "00",
minutes: "00",
seconds: "00",
});
// const [countdown1, setCountdown1] = useState({
// days: "00",
// hours: "00",
// minutes: "00",
// seconds: "00",
// });

const [countdown2, setCountdown2] = useState({
days: "00",
Expand All @@ -21,9 +21,9 @@ function App() {
});

useEffect(() => {
const newYearTime1 = new Date(
`June 25 ${new Date().getFullYear()} 00:00:00`
);
// const newYearTime1 = new Date(
// `June 25 ${new Date().getFullYear()} 00:00:00`
// );
const newYearTime2 = new Date(
`July 1 ${new Date().getFullYear()} 00:00:00`
);
Expand All @@ -47,7 +47,7 @@ function App() {
return () => clearInterval(interval);
};

updateCountDown(setCountdown1, newYearTime1);
// updateCountDown(setCountdown1, newYearTime1);
updateCountDown(setCountdown2, newYearTime2);
}, []);

Expand All @@ -61,7 +61,7 @@ function App() {
<h1 className="mt-5">SGC Countdown</h1>
</div>
</div>
{counterBox("25 Jun CDC Launch Day", countdown1)}
{/* {counterBox("25 Jun CDC Launch Day", countdown1)} */}
{counterBox("1 Jul WOG onboarded", countdown2)}

<div className="qr-code-container">
Expand Down

0 comments on commit 59fa65c

Please sign in to comment.