Skip to content

Commit ef56aca

Browse files
committed
[#99] ♻️ replace clsx with twMergeEx in Pagination component
1 parent 99d20a6 commit ef56aca

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/shared/pagination/Pagination.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
import { IcChevronLeft, IcChevronRight } from '@/assets/IconList'
2+
import { twMergeEx } from '@/lib/twMerge'
23
import type { UsePaginationReturn } from '@/types/hooks'
3-
import clsx from 'clsx'
44

55
import { Button } from '@/components/common/button'
66

77
const baseStyle =
88
'flex h-24 w-24 items-center justify-center bg-common-white p-0 text-body3 text-gray-600'
9-
const defaultPageButtonClass = clsx(baseStyle, 'hover:bg-gray-100')
10-
const currentPageButtonClass = clsx(
9+
const defaultPageButtonClass = twMergeEx(baseStyle, 'hover:bg-gray-100')
10+
const currentPageButtonClass = twMergeEx(
1111
baseStyle,
1212
'bg-primary-normal text-common-white'
1313
)
14+
1415
export const Pagination = ({
1516
currentPage,
1617
pageButtons,

0 commit comments

Comments
 (0)