Skip to content

Commit

Permalink
feat: state var 추가 (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
selfishAltruism committed Mar 24, 2024
1 parent 761e04c commit 28f2f40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/home/event/EventPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ const EventPage: React.FC = observer(() => {
if (isDuplicatedEmail) trigger('email');
}, [isDuplicatedEmail]);

const application = true;
const state = 'APPLICATION';

return (
<>
<Header withBack title="간식 배부 행사 신청하기" mini RightComponent={null} />
<PageBody>
<BodyScreen>
{application ? (
{state === 'APPLICATION' ? (
<Container>
<PreventionImg src="/images/empty.png" alt="Empty list logo" />
<br />
Expand All @@ -73,7 +73,7 @@ const EventPage: React.FC = observer(() => {
</BodyScreen>
</PageBody>
<PageFooter>
<NavButton onClick={handleSubmit(onSubmit)} disabled={application}>
<NavButton onClick={handleSubmit(onSubmit)} disabled={state === 'APPLICATION'}>
신청하기
</NavButton>
</PageFooter>
Expand Down

0 comments on commit 28f2f40

Please sign in to comment.