@@ -24,8 +24,6 @@ import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area";
24
24
import { FORM_URLS } from "@/config/api-urls" ;
25
25
import { tokenService } from "@/lib/services/token" ;
26
26
import { formatDate , formatDateTime } from "@/lib/utils" ;
27
- import { SelectTrigger , SelectValue } from "@radix-ui/react-select" ;
28
- import { Select , SelectContent , SelectItem } from "../ui/select" ;
29
27
30
28
// Define response type based on your API structure
31
29
interface FormResponse {
@@ -44,7 +42,7 @@ export default function FormResponses({ form }: FormResponsesProps) {
44
42
const [ error , setError ] = useState < string | null > ( null ) ;
45
43
const [ pagination , setPagination ] = useState < PaginationState > ( {
46
44
pageIndex : 0 ,
47
- pageSize : 10 ,
45
+ pageSize : 10 , // Fixed page size
48
46
} ) ;
49
47
50
48
// Fetch form responses
@@ -218,34 +216,7 @@ export default function FormResponses({ form }: FormResponsesProps) {
218
216
< ScrollBar orientation = "horizontal" />
219
217
</ ScrollArea >
220
218
221
- < div className = "flex items-center px-2" >
222
- { /* Rows per page selector */ }
223
- < div className = "flex items-center space-x-2" >
224
- < span className = "text-sm text-muted-foreground" >
225
- Rows per page
226
- </ span >
227
- < Select
228
- value = { pagination . pageSize . toString ( ) }
229
- onValueChange = { ( value : string ) =>
230
- setPagination ( ( prev ) => ( {
231
- ...prev ,
232
- pageSize : parseInt ( value ) ,
233
- } ) )
234
- }
235
- >
236
- < SelectTrigger className = "h-8 w-[70px] border" >
237
- < SelectValue placeholder = { pagination . pageSize } />
238
- </ SelectTrigger >
239
- < SelectContent side = "top" >
240
- { [ 10 , 30 , 50 ] . map ( ( pageSize ) => (
241
- < SelectItem key = { pageSize } value = { pageSize . toString ( ) } >
242
- { pageSize }
243
- </ SelectItem >
244
- ) ) }
245
- </ SelectContent >
246
- </ Select >
247
- </ div >
248
-
219
+ < div className = "flex items-center justify-center px-2" >
249
220
{ /* Pagination controls */ }
250
221
< div className = "flex items-center space-x-2" >
251
222
< Button
0 commit comments