Skip to content

Commit

Permalink
[chore] 불필요 코드 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdulgi committed Aug 17, 2024
1 parent 7b8dba4 commit 39951b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,7 @@ function getEventDateString(eventDate) {
return `${padNumber(month)}${padNumber(date)}일(${day[fullDate.getDay()]})`;
}

export default function InteractionSlide({
interactionDesc,
index,
isCurrent,
isJoined,
slideTo,
answer,
}) {
export default function InteractionSlide({ interactionDesc, index, isCurrent, slideTo, answer }) {
const currentServerTime = useEventStore((state) => state.currentServerTime);
const activeImgPath = `images/active${index + 1}.png`;
const inactiveImgPath = `images/inactive${index + 1}.png`;
Expand All @@ -30,8 +23,6 @@ export default function InteractionSlide({
const isOpened = currentServerTime >= eventDate;

function onClickExperience() {
if (isJoined < 0) return;

openModal(<InteractionModal index={index} answer={answer} />, "interaction");
}

Expand Down
1 change: 0 additions & 1 deletion src/mainPage/features/interactions/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export default function InteractionPage() {
interactionDesc={interactionDesc}
index={index}
isCurrent={currentInteraction === index}
isJoined={isJoinedList[index]}
slideTo={slideTo}
answer={JSONData.answer[index]}
/>
Expand Down

0 comments on commit 39951b4

Please sign in to comment.