update application page, table.

This commit is contained in:
2026-04-16 11:54:58 +07:00
parent 720f13e9bb
commit 925b42199c
12 changed files with 265 additions and 91 deletions
+5 -2
View File
@@ -5,6 +5,7 @@ interface ComponentCardProps {
children: React.ReactNode;
className?: string; // Additional custom classes for styling
desc?: string; // Description text
headerAction?: React.ReactNode;
}
const ComponentCard: React.FC<ComponentCardProps> = ({
@@ -12,13 +13,14 @@ const ComponentCard: React.FC<ComponentCardProps> = ({
children,
className = "",
desc = "",
headerAction,
}) => {
return (
<div
className={`rounded-2xl border border-gray-200 bg-white dark:border-gray-800 dark:bg-white/[0.03] ${className}`}
>
{/* Card Header */}
<div className="px-6 py-5">
<div className="px-6 py-5 flex items-center justify-between">
<h3 className="text-base font-medium text-gray-800 dark:text-white/90">
{title}
</h3>
@@ -27,8 +29,9 @@ const ComponentCard: React.FC<ComponentCardProps> = ({
{desc}
</p>
)}
{headerAction && <div>{headerAction}</div>}
</div>
{/* Card Body */}
<div className="p-4 border-t border-gray-100 dark:border-gray-800 sm:p-6">
<div className="space-y-6">{children}</div>