File tree 3 files changed +1
-14
lines changed
3 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,7 @@ import {
14
14
15
15
const Tunnel = tunnel ( 'pagination' )
16
16
17
- interface PaginationProps extends UIPaginationProps {
18
- /** If true pagination will be rendered wherever `Pagination.Target` is included */
19
- inline ?: boolean
20
- }
21
- export function Pagination ( { inline = false , ...props } : PaginationProps ) {
22
- if ( inline ) return < UIPagination { ...props } />
23
-
17
+ export function Pagination ( props : UIPaginationProps ) {
24
18
return (
25
19
< Tunnel . In >
26
20
< UIPagination className = "gutter h-14 py-5" { ...props } />
Original file line number Diff line number Diff line change @@ -53,8 +53,6 @@ export const useQueryTable = <A extends ApiListMethods, M extends keyof A>(
53
53
type QueryTableProps < Item > = {
54
54
/** Prints table data in the console when enabled */
55
55
debug ?: boolean
56
- /** Function that produces a list of actions from a row item */
57
- pagination ?: 'inline' | 'page'
58
56
pageSize ?: number
59
57
rowHeight ?: 'small' | 'large'
60
58
emptyState : React . ReactElement
@@ -71,7 +69,6 @@ const makeQueryTable = <Item extends Record<string, unknown>>(
71
69
) : ComponentType < QueryTableProps < Item > > =>
72
70
function QueryTable ( {
73
71
debug,
74
- pagination = 'page' ,
75
72
pageSize = PAGE_SIZE ,
76
73
rowHeight = 'small' ,
77
74
emptyState,
@@ -115,7 +112,6 @@ const makeQueryTable = <Item extends Record<string, unknown>>(
115
112
< >
116
113
< Table table = { table } rowHeight = { rowHeight } />
117
114
< Pagination
118
- inline = { pagination === 'inline' }
119
115
pageSize = { pageSize }
120
116
hasNext = { tableData . length === pageSize }
121
117
hasPrev = { hasPrev }
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ const PageInput = ({ number, className }: PageInputProps) => {
27
27
}
28
28
29
29
export interface PaginationProps {
30
- type ?: 'inline' | 'page'
31
30
pageSize : number
32
31
hasNext : boolean
33
32
hasPrev : boolean
@@ -37,7 +36,6 @@ export interface PaginationProps {
37
36
className ?: string
38
37
}
39
38
export const Pagination = ( {
40
- type = 'inline' ,
41
39
pageSize,
42
40
hasNext,
43
41
hasPrev,
@@ -50,7 +48,6 @@ export const Pagination = ({
50
48
< >
51
49
< div
52
50
className = { cn (
53
- type === 'page' && 'py-5' ,
54
51
'flex items-center justify-between text-mono-sm text-default bg-default' ,
55
52
className
56
53
) }
You can’t perform that action at this time.
0 commit comments