Skip to content

Commit

Permalink
refactor: RecruitDetail storybook 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
tteokbokki-master committed Nov 8, 2024
1 parent f705635 commit cd42859
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/pages/recruit/RecruitDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,19 @@ export default function RecruitDetail({
</Flex>
</SectionWithTitle>
<SectionWithTitle title={t('recruit.eligibilityRequirements')}>
{eligibilityCriteria.map((data) => {
{eligibilityCriteria?.map((data) => {
return <li key={data.id}>{data.text}</li>;
})}
</SectionWithTitle>
<SectionWithTitle title={t('recruit.detailedDescription')}>{detailedDescription}</SectionWithTitle>
<SectionWithTitle title={t('recruit.mainResponsibilities')}>
{majorBusiness.map((data) => {
{majorBusiness?.map((data) => {
return <li key={data.id}>{data.text}</li>;
})}
</SectionWithTitle>

<SectionWithTitle title={t('recruit.PreferredRequirements')}>
{preferredConditions.map((data) => {
{preferredConditions?.map((data) => {
return <li key={data.id}>{data.text}</li>;
})}
</SectionWithTitle>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/recruit/stories/RecruitCard.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Meta, StoryObj } from '@storybook/react';
import RecruitCard from '../RecruitCard';
import { RecruitCardProps } from '../RecruitType';
import cat from '@/apis/recruitmentsDetail/cat.jpg';
import cat from '@/apis/recruitmentsDetail/mock/cat.jpg';

const meta: Meta<RecruitCardProps> = {
title: 'PAGES/Recruit/RecruitCard',
Expand Down
6 changes: 6 additions & 0 deletions src/pages/recruit/stories/index.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import { Meta, StoryObj } from '@storybook/react';
import Recruit from '..';
import { recruitmentsDetailMockHandler } from '@/apis/recruitmentsDetail/mock/recruitmentsDetailMockHandler';

const meta: Meta<typeof Recruit> = {
title: 'PAGES/Recruit',
component: Recruit,
tags: ['autodocs'],
parameters: {
msw: {
handlers: { ...recruitmentsDetailMockHandler },
},
},
};

export default meta;
Expand Down

0 comments on commit cd42859

Please sign in to comment.