Skip to content

Commit

Permalink
fix: 이미 사용하고 있는 타입으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene028 committed Aug 7, 2024
1 parent fff5e58 commit 4ffcdc7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/components/myPage/ApproveBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ import {
convertRecruitmentName
} from '@/utils/mypage/recruitmentNameFormat';
import useBottomSheet from '@/hooks/common/useBottomSheet';
import { UserRoleType } from '@/types/user';

type MemberRole = 'GUEST' | 'ASSOCIATE' | 'REGULAR';
type BoxVariantType = 'arrow' | 'checkbox' | 'text' | 'warn';
type BoxStatusType = 'default' | 'success' | 'error';

export const ApproveBox = ({
role,
currentRecruitment
}: {
role: MemberRole;
role: UserRoleType;
currentRecruitment: CurrentRecruitmentType;
}) => {
const { handleBottomSheet } = useBottomSheet();
const boxContent: Record<
MemberRole,
UserRoleType,
{
title: string;
description?: string;
Expand Down
6 changes: 2 additions & 4 deletions src/components/myPage/JoinStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@ import { ApproveBox } from './ApproveBox';
import { Text, Flex, Space } from '../common/Wrapper';
import { CurrentRecruitmentType } from '@/apis/member/memberType';
import MemberStatusStepper from './MemberStatusStepper';
import { User } from '@/types/user';

type MemberRole = 'GUEST' | 'ASSOCIATE' | 'REGULAR';
import { User, UserRoleType } from '@/types/user';

const JoinStatus = ({
role,
currentRecruitmentRound,
member
}: {
role: MemberRole;
role: UserRoleType;
currentRecruitmentRound: CurrentRecruitmentType;
member: User;
}) => {
Expand Down

0 comments on commit 4ffcdc7

Please sign in to comment.