Skip to content

Commit

Permalink
๐Ÿš€ update: myParticipationStatus ํƒ€์ž… - PARTICIPATING -\> JOINING
Browse files Browse the repository at this point in the history
  • Loading branch information
hayoiii committed Sep 4, 2023
1 parent 5bc8b8c commit 52a1367
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/home/CalendarSection/mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const homeEventsMock: HomeVolunteerEvent[] = [
waitingNum: 5,
startAt: '2023-08-01T19:00:55.162Z',
endAt: '2023-08-01T20:00:55.162Z',
myParticipationStatus: 'PARTICIPATING'
myParticipationStatus: 'JOINING'
},
{
shelterId: 8,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default function VolunteerEventCard({
<Caption2>{event.shelterName}</Caption2>
</div>
)}
{myParticipationStatus === 'PARTICIPATING' ? (
{myParticipationStatus === 'JOINING' ? (
<Caption1 color="error" className={styles.myStatus}>
์‹ ์ฒญ ์™„๋ฃŒ
</Caption1>
Expand Down
2 changes: 1 addition & 1 deletion src/components/volunteer-schedule/mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const volunteerEventsMock: VolunteerEvent[] = [
waitingNum: 5,
startAt: '2023-07-01T19:00:55.162Z',
endAt: '2023-07-01T20:00:55.162Z',
myParticipationStatus: 'PARTICIPATING'
myParticipationStatus: 'JOINING'
},
{
eventStatus: 'IN_PROGRESS',
Expand Down
9 changes: 6 additions & 3 deletions src/types/volunteerEvent.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { AgeLimit, VolunteerEventCategory } from '@/constants/volunteerEvent';
import {
AgeLimit,
MyStatus,
VolunteerEventCategory
} from '@/constants/volunteerEvent';
import { ShelterAddress } from './shelter';

export type EventStatus = 'IN_PROGRESS' | 'DONE' | 'CANCELED';
export type MyParticipationStatus = 'PARTICIPATING' | 'WAITING' | 'NONE';

export interface VolunteerEvent {
volunteerEventId: number;
Expand All @@ -14,7 +17,7 @@ export interface VolunteerEvent {
waitingNum: number;
startAt: string;
endAt: string;
myParticipationStatus: MyParticipationStatus;
myParticipationStatus: MyStatus;
}

export interface VolunteerEventDetail extends Omit<VolunteerEvent, 'joniNum'> {
Expand Down

0 comments on commit 52a1367

Please sign in to comment.