From cf1de058d1c473bf45ce9e115ada21f99de60f1f Mon Sep 17 00:00:00 2001 From: Sebastian Kondratowicz Date: Mon, 7 Oct 2024 15:20:43 +0200 Subject: [PATCH] rowsPresets moved to separate utils file --- frontend/src/components/common/Pagination/Pagination.tsx | 7 +------ .../src/components/common/Pagination/Pagination.utils.ts | 5 +++++ frontend/src/components/pages/People/People.hook.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 frontend/src/components/common/Pagination/Pagination.utils.ts diff --git a/frontend/src/components/common/Pagination/Pagination.tsx b/frontend/src/components/common/Pagination/Pagination.tsx index cde57e1..a2428d3 100644 --- a/frontend/src/components/common/Pagination/Pagination.tsx +++ b/frontend/src/components/common/Pagination/Pagination.tsx @@ -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, diff --git a/frontend/src/components/common/Pagination/Pagination.utils.ts b/frontend/src/components/common/Pagination/Pagination.utils.ts new file mode 100644 index 0000000..e78796e --- /dev/null +++ b/frontend/src/components/common/Pagination/Pagination.utils.ts @@ -0,0 +1,5 @@ +export const rowsPresets = [ + { id: 10, name: '10' }, + { id: 50, name: '50' }, + { id: 100, name: '100' }, +]; diff --git a/frontend/src/components/pages/People/People.hook.ts b/frontend/src/components/pages/People/People.hook.ts index 2ef39c3..f67bf20 100644 --- a/frontend/src/components/pages/People/People.hook.ts +++ b/frontend/src/components/pages/People/People.hook.ts @@ -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 },