Skip to content

Commit

Permalink
fix: api 수정 (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
mungjin01 committed May 23, 2024
1 parent 0669883 commit 1d6f066
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
14 changes: 7 additions & 7 deletions src/components/MyPage/MyBrandingView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { authClient } from '@/apis/client';
import { ExperienceCard } from '@/components/MyPage/ExperienceCard';

interface ApiResponseItem {
selfUnderstandingUrl: string;
name: string;
link: string;
imageUrl: string;
programsTitle: string;
type: string;
programsId: number;
}

Expand Down Expand Up @@ -51,10 +51,10 @@ export const MyBrandingView = ({ programData, sortOrder }: MyExperienceProps) =>
{data.map((item) => (
<ExperienceCard
key={item.programsId}
imageUrl={item.selfUnderstandingUrl}
title={item.link ? '셀피스 프로그램' : '외부 프로그램'}
subtitle={item.name}
$variant={item.link ? 'type1' : 'type2'}
imageUrl={item.imageUrl}
title={item.programsTitle ? '신청 완료' : '외부 프로그램'}
$variant={item.programsTitle ? 'type1' : 'type2'}
subtitle={''}
/>
))}
</Container>
Expand Down
14 changes: 7 additions & 7 deletions src/components/MyPage/MyExperienceWholeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { authClient } from '@/apis/client';
import { ExperienceCard } from '@/components/MyPage/ExperienceCard';

interface ApiResponseItem {
selfUnderstandingUrl: string;
name: string;
link: string;
imageUrl: string;
programsTitle: string;
type: string;
programsId: number;
}

Expand Down Expand Up @@ -51,10 +51,10 @@ export const MyExperienceWholeView = ({ programData, sortOrder }: MyExperiencePr
{data.map((item) => (
<ExperienceCard
key={item.programsId}
imageUrl={item.selfUnderstandingUrl}
title={item.link ? '셀피스 프로그램' : '외부 프로그램'}
subtitle={item.name}
$variant={item.link ? 'type1' : 'type2'}
imageUrl={item.imageUrl}
title={item.programsTitle ? '신청 완료' : '외부 프로그램'}
$variant={item.programsTitle ? 'type1' : 'type2'}
subtitle={''}
/>
))}
</Container>
Expand Down
14 changes: 7 additions & 7 deletions src/components/MyPage/MyUnderstandingView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { authClient } from '@/apis/client';
import { ExperienceCard } from '@/components/MyPage/ExperienceCard';

interface ApiResponseItem {
selfUnderstandingUrl: string;
name: string;
link: string;
imageUrl: string;
programsTitle: string;
type: string;
programsId: number;
}

Expand Down Expand Up @@ -51,10 +51,10 @@ export const MyUnderstandingView = ({ programData, sortOrder }: MyExperienceProp
{data.map((item) => (
<ExperienceCard
key={item.programsId}
imageUrl={item.selfUnderstandingUrl}
title={item.link ? '셀피스 프로그램' : '외부 프로그램'}
subtitle={item.name}
$variant={item.link ? 'type1' : 'type2'}
imageUrl={item.imageUrl}
title={item.programsTitle ? '신청 완료' : '외부 프로그램'}
$variant={item.programsTitle ? 'type1' : 'type2'}
subtitle={''}
/>
))}
</Container>
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/Modal/BrandCardModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,4 @@ const Label = styled.div`
color: ${({ theme }) => `${theme.color.gray700}`};
${({ theme }) => theme.font.desktop.body1m};
word-wrap: break-word;
`;
`;

0 comments on commit 1d6f066

Please sign in to comment.