Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/app/api/resume/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ export const GET = async (request: NextRequest) => {
},
});

if (!response) {
return NextResponse.json({ message: NOT_FOUND }, { status: 404 });
}

return NextResponse.json({ response }, { status: 200 });
} catch (error) {
return NextResponse.json({ message: GET_SERVER_ERROR }, { status: 500 });
Expand Down
1 change: 0 additions & 1 deletion src/features/interview/resume-all-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ const ResumeAllModal = () => {
setResume(resume.id);
toggleModal(ALL_RESUME_LIST);
}}
hrOption={false}
/>
);
})}
Expand Down
8 changes: 6 additions & 2 deletions src/features/interview/resume-cards-box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,14 @@ const ResumeCardsBox = ({ session }: Props) => {
</section>
<section className='hidden max-h-[200px] max-w-[100vw] flex-col gap-5 mobile:flex'>
<ul className='flex w-full flex-col overflow-y-auto scrollbar-hide'>
{resumeList.map((resume) => {
{resumeList.map((resume, index) => {
return (
<div key={resume.id} className={`${resume.id === selectedId ? 'bg-primary-orange-600/20' : ''} `}>
<ResumeItem resume={resume} onClick={() => setResume(resume.id)} hrOption={false} />
<ResumeItem
resume={resume}
onClick={() => setResume(resume.id)}
isLastChild={resumeList.length === index + 1}
/>
</div>
);
})}
Expand Down
8 changes: 3 additions & 5 deletions src/features/my-page/empty-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ import { TABS } from '@/constants/my-page-constants';

const { BOOKMARK_TAB, RESUME_TAB, INTERVIEW_HISTORY_TAB } = TABS;
const EMPTY_MESSAGE: Record<string, string> = {
[INTERVIEW_HISTORY_TAB]: `λ©΄μ ‘ κ²°κ³Όκ°€ μ—†μŠ΅λ‹ˆλ‹€.
면접을 λ¨Όμ € μ§„ν–‰ν•΄ μ£Όμ„Έμš”.`,
[BOOKMARK_TAB]: `뢁마크 된 μ±„μš© 곡고가 μ—†μŠ΅λ‹ˆλ‹€.
μ±„μš©κ³΅κ³  νŽ˜μ΄μ§€μ—μ„œ μ›ν•˜λŠ” λ‚΄μš©μ„ μ°Ύμ•„λ³΄μ„Έμš”.`,
[RESUME_TAB]: `아직 μž‘μ„±λœ 이λ ₯μ„œκ°€ μ—†μŠ΅λ‹ˆλ‹€.`,
[INTERVIEW_HISTORY_TAB]: `λ©΄μ ‘ κ²°κ³Όκ°€ μ—†μŠ΅λ‹ˆλ‹€.\n면접을 λ¨Όμ € μ§„ν–‰ν•΄ μ£Όμ„Έμš”.`,
[BOOKMARK_TAB]: `뢁마크 된 μ±„μš© 곡고가 μ—†μŠ΅λ‹ˆλ‹€.\nμ±„μš©κ³΅κ³  νŽ˜μ΄μ§€μ—μ„œ μ›ν•˜λŠ” λ‚΄μš©μ„ μ°Ύμ•„λ³΄μ„Έμš”.`,
[RESUME_TAB]: `아직 μž‘μ„±λœ μžμ†Œμ„œκ°€ μ—†μŠ΅λ‹ˆλ‹€.\nμžμ†Œμ„œλ₯Ό λ¨Όμ € μž‘μ„±ν•΄ μ£Όμ„Έμš”.`,
};

type Props = {
Expand Down
7 changes: 3 additions & 4 deletions src/features/resume-list/resume-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ import clsx from 'clsx';
type Props = {
resume: ResumeType;
onClick: (resumeId: ResumeType['id']) => void;
hrOption?: boolean;
isLastChild?: boolean;
};

const ResumeItem = ({ resume, onClick, hrOption = true }: Props) => {
const ResumeItem = ({ resume, onClick, isLastChild = true }: Props) => {
const { id, title, createdAt, tryCount } = resume;
const hasNotInterviewed = tryCount === 0;

return (
<div className='flex flex-col mobile:p-2 gap-4'>
<div className={clsx('flex flex-col gap-4 py-2 mobile:p-2', isLastChild ? 'border-b-0' : 'border-b')}>
<li onClick={() => onClick(id)} className='flex cursor-pointer flex-col'>
<Typography size='sm' weight='normal' color='gray-500'>
<span className='mobile:text-xs'>{formatDate({ input: createdAt })}</span>
Expand All @@ -34,7 +34,6 @@ const ResumeItem = ({ resume, onClick, hrOption = true }: Props) => {
)}
</div>
</li>
{hrOption && <hr className='border-cool-gray-300' />}
</div>
);
};
Expand Down
5 changes: 3 additions & 2 deletions src/features/resume-list/resume-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import ResumeItem from '@/features/resume-list/resume-item';
import { useResumeListQuery } from '@/features/resume-list/hooks/use-resume-list-query';
import { getMyPagePath } from '@/features/my-page/utils/get-my-page-path';
import { TABS } from '@/constants/my-page-constants';
import EmptyList from '../my-page/empty-list';

const { RESUME_TAB } = TABS;

Expand All @@ -26,15 +27,15 @@ const ResumeList = () => {
}

if (isError) return <div>μžμ†Œμ„œ 리슀트λ₯Ό λΆˆλŸ¬μ˜€λŠ”λ° μ‹€νŒ¨ν•˜μ˜€μŠ΅λ‹ˆλ‹€.</div>;

if (resumeList.length === 0) return <EmptyList tab={RESUME_TAB} />;
return (
<ul className='h-full overflow-y-auto scrollbar-hide'>
{resumeList.map((resume, index) => {
return (
<ResumeItem
key={resume.id}
resume={resume}
hrOption={resumeList.length !== index + 1}
isLastChild={resumeList.length === index + 1}
onClick={handleGetDetailList}
/>
);
Expand Down