Skip to content

Commit

Permalink
refactor: console 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
jw0097 committed Aug 19, 2024
1 parent 1f1d147 commit 9d8e52d
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/hooks/useTimer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const useTimer = (initialTime: number, onEndHandler?: Function) => {

useEffect(() => {
const timer = setInterval(() => {
console.log("set");
setLeftTime((prevTime) => prevTime - INTERVAL);
}, INTERVAL);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ const FCFSQuizSection = ({ quizInfo }: FCFSQuizSectionProps) => {
if (selectedIndex + 1 === parseInt(answer)) {
setIsFCFSEnd(true);
navigate("/event1/result");
console.log("clicked");
} else {
if (selectedIndex === -1) {
setIsError("NO_ANSWER");
Expand Down
4 changes: 0 additions & 4 deletions src/pages/FCFSEventResultPage/FCFSEventResultPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ const FCFSEventResultPage = () => {
}
}, [isResultVisible, buttonStartAnimation]);

useEffect(() => {
console.log("print result");
}, []);

return (
<div className="relative flex h-screen w-screen flex-col items-center justify-start overflow-hidden bg-black">
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const ColorPallete = ({ index, parentRef }: ColorPalleteProps) => {
const containerOffset = parentRef.current.offsetTop;
const imageHeight = parentRef.current.offsetHeight / colorInfoData.length;
const imageOffset = (index + 1) * imageHeight;
console.log(imageOffset + containerOffset);
parentRef.current.parentElement?.parentElement?.scrollTo({
top: imageOffset + containerOffset,
behavior: "smooth",
Expand Down
3 changes: 0 additions & 3 deletions src/pages/mainPage/InfoScreen/VideoSection/VideoSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const VideoSection = () => {
const videoObserver = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
console.log("video");
if (entry.isIntersecting) videoRef.current?.play();
else videoRef.current?.pause();
});
Expand All @@ -21,9 +20,7 @@ const VideoSection = () => {
const textObserver = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
console.log("text");
if (entry.isIntersecting) {
console.log("intersecting");
setIsShown(true);
} else setIsShown(false);
});
Expand Down

0 comments on commit 9d8e52d

Please sign in to comment.