Skip to content

Commit

Permalink
feat: 회원 이벤트 생성 완료 버튼을 누를 때 로딩이 되도록 함
Browse files Browse the repository at this point in the history
  • Loading branch information
pakxe committed Nov 19, 2024
1 parent 910983e commit 230d8ab
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type SetEventNamePageProps = {

const SetMemberEventNameStep = ({moveToNextStep, setEventToken}: SetEventNamePageProps) => {
const {eventName, errorMessage, canSubmit, handleEventNameChange} = useSetEventNameStep();
const {postEvent} = useRequestPostMemberEvent();
const {postEvent, isPostEventPending} = useRequestPostMemberEvent();
const {trackCompleteCreateMemberEvent} = useAmplitude();

const submit = async (event: React.FormEvent<HTMLFormElement>) => {
Expand Down Expand Up @@ -56,7 +56,9 @@ const SetMemberEventNameStep = ({moveToNextStep, setEventToken}: SetEventNamePag
isError={!!errorMessage}
autoFocus
/>
<FixedButton disabled={!canSubmit}>다음</FixedButton>
<FixedButton variants={isPostEventPending ? 'loading' : 'primary'} disabled={!canSubmit}>
다음
</FixedButton>
</form>
</div>
);
Expand Down

0 comments on commit 230d8ab

Please sign in to comment.