Create pagination component and paginate manage page as well

This commit is contained in:
thiloho
2024-10-19 21:01:45 +02:00
parent b1a59e38c1
commit 4e98df5790
6 changed files with 121 additions and 84 deletions

View File

@@ -179,6 +179,8 @@ export const enhanceForm = (options?: {
};
};
export const PAGINATION_MAX_ITEMS = 20;
export const hexToHSL = (hex: string) => {
const r = parseInt(hex.slice(1, 3), 16) / 255;
const g = parseInt(hex.slice(3, 5), 16) / 255;