Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

이벤트 문제 수정 #753

Merged
merged 7 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions packages/web/src/pages/Event/Event2024Spring.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ const Event2024Spring = () => {
width: "100%",
}}
>
<img src={GoldPrize} alt="prize" css={{ width: "144px" }} />
<img src={SilverPrize} alt="prize" css={{ width: "144px" }} />
<img src={GoldPrize} alt="prize" css={{ width: "45%" }} />
<img src={SilverPrize} alt="prize" css={{ width: "45%" }} />
</div>
</div>
<Link
Expand All @@ -383,7 +383,14 @@ const Event2024Spring = () => {
</Link>
</EventStep>
<EventStep step="EVENT" title="인스타그램 공유이벤트">
<Link to="/" css={{ textDecoration: "none", width: "100%" }}>
<Link
to={{
pathname:
"https://www.instagram.com/p/C34dMLKpuFw/?igsh=d24yMDZlcWtvczlp",
}}
target="_blank"
css={{ textDecoration: "none", width: "100%" }}
>
<EventButton
title="인스타그램 게시물 보러가기"
css={{ background: eventTheme.instagram_button }}
Expand Down
5 changes: 3 additions & 2 deletions packages/web/src/pages/Event/Event2024SpringMissions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ export const MissionContainer = ({ quest }: MissionContainerProps) => {
};

const Event2024SpringMissions = () => {
const { quests } = useValueRecoilState("event2024SpringInfo") || {};
const { isAgreeOnTermsOfEvent, quests } =
useValueRecoilState("event2024SpringInfo") || {};
useEventBackgroundEffect();

return (
Expand All @@ -161,7 +162,7 @@ const Event2024SpringMissions = () => {
</HeaderWithBackButton>
<AdaptiveDiv type="center">
<div css={{ height: "30px" }} />
<CreditAmountContainer />
{isAgreeOnTermsOfEvent && <CreditAmountContainer />}
<SuggestJoinEventContainer />
{quests?.map((quest) => (
<MissionContainer key={quest.id} quest={quest} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ const EventSection2024Spring = () => {
background: eventTheme.black,
};

const { isEligible } = useValueRecoilState("event2024SpringInfo") || {};
const { isEligible, isAgreeOnTermsOfEvent } =
useValueRecoilState("event2024SpringInfo") || {};

return (
<>
Expand Down Expand Up @@ -76,7 +77,7 @@ const EventSection2024Spring = () => {
paddingBottom: "15px",
}}
>
<CreditAmountContainer />
{isAgreeOnTermsOfEvent && <CreditAmountContainer />}
<div css={{ display: "flex", gap: "15px" }}>
<Link
to="/event/2024spring"
Expand Down
Loading