From 38a5943675d2b63ab4d4f0ecc3dcb52245643281 Mon Sep 17 00:00:00 2001 From: Jisang Hong Date: Fri, 13 Dec 2024 08:34:00 +0900 Subject: [PATCH] fix: correct case for setLazyState method - from `setlazyState` to `setLazyState` --- components/doc/datatable/lazyloaddoc.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/components/doc/datatable/lazyloaddoc.js b/components/doc/datatable/lazyloaddoc.js index f566adc5e7..4340986b38 100644 --- a/components/doc/datatable/lazyloaddoc.js +++ b/components/doc/datatable/lazyloaddoc.js @@ -11,7 +11,7 @@ export function LazyLoadDoc(props) { const [customers, setCustomers] = useState(null); const [selectAll, setSelectAll] = useState(false); const [selectedCustomers, setSelectedCustomers] = useState(null); - const [lazyState, setlazyState] = useState({ + const [lazyState, setLazyState] = useState({ first: 0, rows: 10, page: 1, @@ -52,16 +52,16 @@ export function LazyLoadDoc(props) { }; const onPage = (event) => { - setlazyState(event); + setLazyState(event); }; const onSort = (event) => { - setlazyState(event); + setLazyState(event); }; const onFilter = (event) => { event.first = 0; - setlazyState(event); + setLazyState(event); }; const onSelectionChange = (event) => { @@ -129,7 +129,7 @@ export default function LazyLoadDemo() { const [customers, setCustomers] = useState(null); const [selectAll, setSelectAll] = useState(false); const [selectedCustomers, setSelectedCustomers] = useState(null); - const [lazyState, setlazyState] = useState({ + const [lazyState, setLazyState] = useState({ first: 0, rows: 10, page: 1, @@ -167,16 +167,16 @@ export default function LazyLoadDemo() { }; const onPage = (event) => { - setlazyState(event); + setLazyState(event); }; const onSort = (event) => { - setlazyState(event); + setLazyState(event); }; const onFilter = (event) => { event['first'] = 0; - setlazyState(event); + setLazyState(event); }; const onSelectionChange = (event) => { @@ -280,7 +280,7 @@ export default function LazyLoadDemo() { const [customers, setCustomers] = useState(null); const [selectAll, setSelectAll] = useState(false); const [selectedCustomers, setSelectedCustomers] = useState(null); - const [lazyState, setlazyState] = useState({ + const [lazyState, setLazyState] = useState({ first: 0, rows: 10, page: 1, @@ -318,16 +318,16 @@ export default function LazyLoadDemo() { }; const onPage = (event: DataTablePageEvent) => { - setlazyState(event); + setLazyState(event); }; const onSort = (event: DataTableSortEvent) => { - setlazyState(event); + setLazyState(event); }; const onFilter = (event: DataTableFilterEvent) => { event['first'] = 0; - setlazyState(event); + setLazyState(event); }; const onSelectionChange = (event: DataTableSelectionChangeEvent) => {