Skip to content

Commit

Permalink
rowsPresets moved to separate utils file
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Kondratowicz committed Oct 7, 2024
1 parent 9d0c1a2 commit cf1de05
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
7 changes: 1 addition & 6 deletions frontend/src/components/common/Pagination/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ import { Listbox } from '../Listbox';
import { Typography } from '../Typography';
import { ChevronRightIcon } from '@app/static/icons/ChevronRightIcon';
import { PaginationProps } from './Pagination.interface';

export const rowsPresets = [
{ id: 10, name: '10' },
{ id: 50, name: '50' },
{ id: 100, name: '100' },
];
import { rowsPresets } from './Pagination.utils';

const ChevronButton = ({
onClick,
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/components/common/Pagination/Pagination.utils.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const rowsPresets = [
{ id: 10, name: '10' },
{ id: 50, name: '50' },
{ id: 100, name: '100' },
];
2 changes: 1 addition & 1 deletion frontend/src/components/pages/People/People.hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useQueryParams } from '@app/hooks';
import { Option } from '@app/types/common';
import { userStatus } from '@app/types/user';
import { useSearchParams } from 'next/navigation';
import { rowsPresets } from '@app/components/common/Pagination/Pagination';
import { rowsPresets } from '@app/components/common/Pagination/Pagination.utils';

const tabs = [
{ name: userStatus.active, id: userStatus.active },
Expand Down

0 comments on commit cf1de05

Please sign in to comment.