Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dtassone committed Jan 27, 2021
1 parent 3b873bc commit 0acc330
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/storybook/src/stories/grid-pagination.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,11 @@ export function HiddenPagination() {

export function PaginationApiTests() {
const apiRef: ApiRef = useApiRef();
apiRef.current.id = 123;
const data = useData(2000, 200);
const [autosize, setAutoSize] = React.useState(false);

React.useEffect(() => {
if (apiRef.current.onPageChange) {
return apiRef.current.onPageChange(action('pageChange'));
}
return apiRef.current.onPageChange(action('pageChange'));
}, [apiRef, data]);

const backToFirstPage = () => {
Expand Down

0 comments on commit 0acc330

Please sign in to comment.