@daeryun/dr_components 1.1.51 → 1.1.53
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.
- package/dist/components/PaginationForGroup/PaginationForGroup.d.ts +1 -0
- package/dist/components/PaginationForGroup/PaginationForGroup.jsx +1 -1
- package/dist/components/PaginationForGroup/PaginationForGroup.tsx +2 -1
- package/dist/components/page/Broadcast/BroadcastList.jsx +1 -1
- package/dist/components/page/Broadcast/BroadcastList.tsx +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -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={
|
|
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={
|
|
52
|
+
disabled={currentPage <= 1}
|
|
52
53
|
index={
|
|
53
54
|
<Image
|
|
54
55
|
src={arrowLeft}
|
|
@@ -85,7 +85,7 @@ const BroadcastList = ({ search, page, count, size, broadcastList }) => {
|
|
|
85
85
|
})}
|
|
86
86
|
</div>) : (<div className={'h-[300px] text-center text-[20px] leading-[300px]'}>정보 조회 중입니다.</div>)}
|
|
87
87
|
</div>
|
|
88
|
-
<PaginationForGroup total={count} size={size} currentPage={page}/>
|
|
88
|
+
<PaginationForGroup total={count} size={size} currentPage={page} className={'my-[100px]'}/>
|
|
89
89
|
{/*<PaginationComponent onChange={onChange} current={page} total={count} pageSize={size} />*/}
|
|
90
90
|
</PageWrapper>);
|
|
91
91
|
};
|
|
@@ -180,7 +180,7 @@ const BroadcastList = ({
|
|
|
180
180
|
<div className={'h-[300px] text-center text-[20px] leading-[300px]'}>정보 조회 중입니다.</div>
|
|
181
181
|
)}
|
|
182
182
|
</div>
|
|
183
|
-
<PaginationForGroup total={count} size={size} currentPage={page} />
|
|
183
|
+
<PaginationForGroup total={count} size={size} currentPage={page} className={'my-[100px]'} />
|
|
184
184
|
{/*<PaginationComponent onChange={onChange} current={page} total={count} pageSize={size} />*/}
|
|
185
185
|
</PageWrapper>
|
|
186
186
|
);
|