This commit is contained in:
2024-07-22 12:46:12 +03:00
parent af05b51d1c
commit 23dbff2891
46 changed files with 1173 additions and 40 deletions

4
src/types/Pagination.ts Normal file
View File

@@ -0,0 +1,4 @@
export type Pagination = {
itemsPerPage: number,
page: number
}

View File

@@ -7,4 +7,7 @@ export type BaseFormInputProps<T> = {
onChange: (value: T) => void;
value: T;
error?: string | null;
}
export const formatDate = (date: string) => {
return new Date(date).toLocaleDateString("ru-RU");
}