k
This commit is contained in:
4
src/types/Pagination.ts
Normal file
4
src/types/Pagination.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export type Pagination = {
|
||||
itemsPerPage: number,
|
||||
page: number
|
||||
}
|
||||
@@ -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");
|
||||
}
|
||||
Reference in New Issue
Block a user