From 2b24aa9a67399e5f4aa68f40ba0c03a6ce3e22af Mon Sep 17 00:00:00 2001 From: jinhojang6 Date: Mon, 4 Nov 2024 22:02:12 +0900 Subject: [PATCH] chore: update video --- .../Countdown/CountdownContainer.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/containers/Countdown/CountdownContainer.tsx b/src/containers/Countdown/CountdownContainer.tsx index f0237c688c..88ab58e451 100644 --- a/src/containers/Countdown/CountdownContainer.tsx +++ b/src/containers/Countdown/CountdownContainer.tsx @@ -1,6 +1,6 @@ import { breakpoints } from '@/configs/ui.configs' import styled from '@emotion/styled' -import React, { useEffect, useState } from 'react' +import React from 'react' const NOVEMBER_1_9AM_UTC = new Date(Date.UTC(2024, 10, 1, 9)) // November 1, 2024 9:00:00 AM UTC const NOVEMBER_4_1PM_UTC = new Date(Date.UTC(2024, 10, 4, 13)) // November 4, 2024 1:00:00 PM UTC @@ -18,19 +18,19 @@ const getVideoSource = (): string => { } const CountdownContainer: React.FC = () => { - const [videoSrc, setVideoSrc] = useState(getVideoSource()) + // const [videoSrc, setVideoSrc] = useState(getVideoSource()) - useEffect(() => { - const interval = setInterval(() => { - setVideoSrc(getVideoSource()) - }, 60 * 1000) - return () => clearInterval(interval) - }, []) + // useEffect(() => { + // const interval = setInterval(() => { + // setVideoSrc(getVideoSource()) + // }, 60 * 1000) + // return () => clearInterval(interval) + // }, []) return ( )