Skip to content

Commit

Permalink
fix(table): ts use-case example, page state added (#1271)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgarciadev committed Aug 5, 2023
1 parent 5064bfe commit bdc246a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/docs/content/components/table/use-case.ts
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,8 @@ export default function App() {
column: "age",
direction: "ascending",
});
const [page, setPage] = useState(1);
const pages = Math.ceil(users.length / rowsPerPage);
const hasSearchFilter = Boolean(filterValue);
Expand Down

0 comments on commit bdc246a

Please sign in to comment.