File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
client/my-app/src/components/features Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ export default function AlertTable({ alerts }: { alerts: Alert[] }) {
220220 useEffect ( ( ) => setRows ( alerts ) , [ alerts ] ) ;
221221
222222 // ⬇️ NEW: Pagination state
223- const PAGE_SIZE = 25 ;
223+ const PAGE_SIZE = 10 ;
224224 const [ page , setPage ] = useState ( 1 ) ;
225225
226226 // ให้กลับไปหน้า 1 เมื่อมีการเปลี่ยนแปลงข้อมูล/เรียงลำดับ
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ function parseStatusParam(v: string | null): boolean | null {
1818export default function CameraGrid ( { cameras } : { cameras : Camera [ ] } ) {
1919 const params = useSearchParams ( ) ;
2020 const want = parseStatusParam ( params . get ( "status" ) ) ;
21- const PAGE_SIZE = 12 ;
21+ const PAGE_SIZE = 8 ;
2222
2323 const filtered = useMemo ( ( ) => {
2424 if ( want === null ) return cameras ;
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ export default function CameraTable({
230230
231231 // --- เพิ่ม state + ค่าคงที่ด้านบนของ component ---
232232 const [ page , setPage ] = useState ( 1 ) ;
233- const PAGE_SIZE = 25 ;
233+ const PAGE_SIZE = 10 ;
234234
235235 // รีเซ็ตหน้าเมื่อ filter/sort เปลี่ยน
236236 useEffect ( ( ) => {
You can’t perform that action at this time.
0 commit comments