eleven-solutions-common-website-unique-web 24.0.14 → 24.0.16
Sign up to get free protection for your applications and to get access to all the features.
@@ -103,7 +103,7 @@ export const Users = ({ url }) => {
|
|
103
103
|
day: "2-digit",
|
104
104
|
month: "2-digit",
|
105
105
|
year: "numeric",
|
106
|
-
}) })] }, user.id || index))) })] }) }), _jsx("div", { className: "flex justify-start md:justify-start mt-4", children: _jsxs("button", { type: "button", onClick: (event) => handleNavigation(event, "/admin/users/userform"), className: "flex items-center justify-center px-6 py-2 font-medium tracking-wide text-white capitalize transition-colors duration-300 transform bg-blue-600 rounded-lg hover:bg-blue-500 focus:outline-none focus:ring focus:ring-blue-300 focus:ring-opacity-80", children: [_jsx(FaPlus, { className: "mr-2 font-medium" }), "User"] }) }), _jsxs("div", { className: "flex flex-
|
106
|
+
}) })] }, user.id || index))) })] }) }), _jsx("div", { className: "flex justify-start md:justify-start mt-4", children: _jsxs("button", { type: "button", onClick: (event) => handleNavigation(event, "/admin/users/userform"), className: "flex items-center justify-center px-6 py-2 font-medium tracking-wide text-white capitalize transition-colors duration-300 transform bg-blue-600 rounded-lg hover:bg-blue-500 focus:outline-none focus:ring focus:ring-blue-300 focus:ring-opacity-80", children: [_jsx(FaPlus, { className: "mr-2 font-medium" }), "User"] }) }), _jsxs("div", { className: "flex flex-wrap items-center justify-center md:justify-between mt-6 gap-2 md:gap-4", children: [_jsxs("button", { disabled: currentPage === 1, onClick: () => setCurrentPage((prev) => Math.max(prev - 1, 1)), className: "flex items-center px-5 py-2 text-sm text-gray-700 capitalize transition-colors duration-200 bg-white border rounded-md gap-x-2 hover:bg-gray-100 dark:bg-gray-900 dark:text-gray-200 dark:border-gray-700 dark:hover:bg-gray-800", children: [_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: "1.5", stroke: "currentColor", className: "w-5 h-5 rtl:-scale-x-100", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M6.75 15.75L3 12m0 0l3.75-3.75M3 12h18" }) }), _jsx("span", { children: "Previous" })] }), _jsx("div", { className: "flex flex-wrap items-center justify-center gap-x-2", children: Array.from({ length: Math.min(10, totalPages) }, (_, index) => {
|
107
107
|
const startPage = Math.max(1, currentPage - 5);
|
108
108
|
const page = startPage + index;
|
109
109
|
if (page > totalPages)
|