@daeryun/dr_components 1.1.51 → 1.1.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,6 +4,7 @@ interface PaginationProps {
4
4
  size: number;
5
5
  currentPage: number;
6
6
  className?: string;
7
+ query?: string;
7
8
  }
8
9
  declare const PaginationForGroup: ({ total, size, currentPage, className }: PaginationProps) => React.JSX.Element;
9
10
  export default PaginationForGroup;
@@ -35,7 +35,7 @@ const PaginationForGroup = ({ total, size, currentPage, className }) => {
35
35
  return (<div className={`flex h-[40px] justify-center gap-[6px] font-[500] text-black max-md:h-[35px] max-md:gap-2 ${className}`}>
36
36
  {totalPages >= 1 && (<>
37
37
  {/* 이전 그룹 버튼 */}
38
- <PageBtn disabled={currentGroup <= 1} index={<Image src={arrowLeft} width={26} height={26} alt={''} className={'pb-1 max-sm:scale-[0.8]'}/>} href={{
38
+ <PageBtn disabled={currentPage <= 1} index={<Image src={arrowLeft} width={26} height={26} alt={''} className={'pb-1 max-sm:scale-[0.8]'}/>} href={{
39
39
  pathname,
40
40
  query: Object.assign({ page: currentPage - 1 }, query)
41
41
  }} alwaysBg/>
@@ -16,6 +16,7 @@ interface PaginationProps {
16
16
  size: number;
17
17
  currentPage: number;
18
18
  className?: string;
19
+ query?: string;
19
20
  }
20
21
 
21
22
  const PaginationForGroup = ({ total, size, currentPage, className }: PaginationProps) => {
@@ -48,7 +49,7 @@ const PaginationForGroup = ({ total, size, currentPage, className }: PaginationP
48
49
  <>
49
50
  {/* 이전 그룹 버튼 */}
50
51
  <PageBtn
51
- disabled={currentGroup <= 1}
52
+ disabled={currentPage <= 1}
52
53
  index={
53
54
  <Image
54
55
  src={arrowLeft}