Skip to content

Commit 98cea21

Browse files
authored
Merge pull request #69 from plus-82/development
[Release] 2025.03.06
2 parents 27b4427 + 324f170 commit 98cea21

8 files changed

Lines changed: 18 additions & 38 deletions

File tree

src/entities/job-post/ui/posting-card/skeleton.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ export const CardSkeleton = () => {
22
return (
33
<div className="w-[250px]">
44
<div className="skeleton relative mb-2 h-[150px] overflow-hidden rounded-xl border border-gray-200 bg-gray-200" />
5-
<div className="flex flex-col gap-2">
6-
<div className="flex flex-col gap-1">
7-
<h3 className="skeleton h-[20px] w-[120px] rounded-[4px] bg-gray-200" />
8-
<p className="skeleton h-4 w-10 rounded-[4px] bg-gray-200" />
5+
<div className="flex flex-col gap-3">
6+
<div className="flex flex-col gap-0.5">
7+
<h3 className="skeleton h-[24px] w-[120px] rounded-[4px] bg-gray-200" />
8+
<p className="skeleton h-5 w-10 rounded-[4px] bg-gray-200" />
99
</div>
1010
<ul className="flex flex-col gap-1">
11-
<li className="skeleton h-4 w-[60px] rounded-[4px] bg-gray-200" />
12-
<li className="skeleton h-4 w-[80px] rounded-[4px] bg-gray-200" />
11+
<li className="skeleton h-5 w-[60px] rounded-[4px] bg-gray-200" />
12+
<li className="skeleton h-5 w-[80px] rounded-[4px] bg-gray-200" />
13+
<li className="skeleton h-5 w-[80px] rounded-[4px] bg-gray-200" />
1314
</ul>
1415
</div>
1516
</div>

src/entities/job-post/ui/posting-title/index.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { format } from 'date-fns'
12
import { capitalize } from 'lodash-es'
23

34
import { colors } from 'shared/config'
@@ -37,12 +38,10 @@ export const PostingTitle = ({ jobPost, size }: Props) => {
3738
<Icon name="User" color={colors.gray[500]} size={size} />
3839
<span>{studentType ?? '-'}</span>
3940
</li>
40-
{size === 'medium' && (
41-
<li className={cn(css.description({ size }))}>
42-
<Icon name="Date" color={colors.gray[500]} size={size} />
43-
<span>~{jobPost.dueDate ?? '-'}</span>
44-
</li>
45-
)}
41+
<li className={cn(css.description({ size }))}>
42+
<Icon name="Date" color={colors.gray[500]} size={size} />
43+
<span>~{format(jobPost.dueDate, 'yyyy.MM.dd') ?? '-'}</span>
44+
</li>
4645
</ul>
4746
</div>
4847
)

src/entities/resume/api/create-resume.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
'use server'
22

3-
import { redirect } from 'next/navigation'
4-
53
import { getSession } from 'entities/auth'
64
import {
75
apiClient,
@@ -14,10 +12,6 @@ import { ResumeDTO } from '../model/resume'
1412

1513
type CreateResumeRequest = ResumeDTO
1614

17-
const handleSuccess = () => {
18-
redirect('/setting/resume')
19-
}
20-
2115
const handleError = (error: Error) => {
2216
const isHttpError = error instanceof HttpError
2317
if (!isHttpError) throw error
@@ -47,8 +41,6 @@ export const createResume = async (data: CreateResumeRequest) => {
4741
},
4842
body: data,
4943
})
50-
51-
handleSuccess()
5244
} catch (error) {
5345
return handleError(error as Error)
5446
}

src/entities/resume/api/update-resume.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
'use server'
22

3-
import { revalidateTag } from 'next/cache'
4-
53
import { getSession } from 'entities/auth'
64
import {
75
apiClient,
@@ -15,10 +13,6 @@ import { ResumeDTO } from '../model/resume'
1513

1614
type UpdateResumeRequest = ResumeDTO
1715

18-
const handleSuccess = () => {
19-
revalidateTag('resume')
20-
}
21-
2216
const handleError = (error: Error) => {
2317
const isHttpError = error instanceof HttpError
2418
if (!isHttpError) throw error
@@ -63,8 +57,6 @@ export const updateResume = async ({
6357
},
6458
body: data,
6559
})
66-
67-
handleSuccess()
6860
} catch (error) {
6961
return handleError(error as Error)
7062
}

src/features/resume-form/ui/resume-form.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export const ResumeForm = ({ resume, submit }: Props) => {
9090
}
9191

9292
const handleUpdateResumeSuccess = () => {
93+
router.push('/setting/resume')
9394
toast.success('Resume updated successfully')
9495
}
9596

src/pages/job-post/ui/job-posting-detail-page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type Params = {
1717
// TODO: 버튼 위치 고민 후 이동
1818
const RegisterResumeButton = () => {
1919
return (
20-
<Button as="a" href="/resumes" variant="lined" size="large">
20+
<Button as="a" href="/setting/resume" variant="lined" size="large">
2121
<Icon name="Plus" color={colors.gray[900]} />
2222
Register Resume
2323
</Button>

src/pages/job-post/ui/job-posting.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
import Link from 'next/link'
22

3-
import { useObserver } from 'shared/lib/observer'
4-
53
import { Card } from 'entities/job-post'
6-
74
import { JobPostFilter } from 'features/job-post-filter'
5+
import { useObserver } from 'shared/lib/observer'
86

7+
import { JobListSkeleton } from './job-list-skeleton'
98
import { useJobPosts } from '../api/use-job-posts'
109
import { transformFiltersToParams } from '../model/transform-filters-to-params'
1110

12-
import { JobListSkeleton } from './job-list-skeleton'
13-
1411
type Props = {
1512
filters: JobPostFilter | null
1613
}

src/pages/job-post/ui/main-page.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,16 @@
33
import Image from 'next/image'
44
import { Suspense } from 'react'
55

6+
import { JobPostFilters } from 'features/job-post-filter'
67
import { EmptyBoundary } from 'shared/api'
78
import { Layout } from 'shared/ui'
89

9-
import { JobPostFilters } from 'features/job-post-filter'
10-
11-
import { useFilter } from '../lib/use-filter'
12-
1310
import { ClosingSoon } from './closing-soon'
1411
import { JobListSkeleton } from './job-list-skeleton'
1512
import { JobPosting } from './job-posting'
1613
import { NoClosingJob } from './no-closing-job'
1714
import { NoJobPosting } from './no-job-posting'
15+
import { useFilter } from '../lib/use-filter'
1816

1917
export const MainPage = () => {
2018
const { filters, setFilters } = useFilter({ syncWithURL: false })

0 commit comments

Comments
 (0)