feat: Page Data Akun

This commit is contained in:
Hafid Nur
2025-03-27 16:55:54 +07:00
parent ec509a7b43
commit 39391e5522
3 changed files with 13 additions and 8 deletions
+10 -5
View File
@@ -54,20 +54,25 @@ export const Components: FC = (): ReactElement => {
{/* Account Table Section */} {/* Account Table Section */}
<section className="flex flex-col gap-6 p-8 bg-white rounded-md"> <section className="flex flex-col gap-6 p-8 bg-white rounded-md">
{/* Search and Filter */} {/* Search and Filter */}
<div className="flex justify-between items-center"> <div className="flex justify-between items-center gap-8 mb-2">
<div className="relative w-full max-w-[400px]"> <div className="relative w-full">
<Input <Input
placeholder="Cari berdasarkan nama lengkap, email" placeholder="Cari berdasarkan nama lengkap, email"
value={searchQuery} value={searchQuery}
onChange={handleSearch} onChange={handleSearch}
className="pl-10" className="pl-12 w-full max-h-full"
/> />
<div className="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"> <div className="absolute left-3 top-1/2 transform -translate-y-1/2 text-[16px]">
<SearchOutlined /> <SearchOutlined />
</div> </div>
</div> </div>
<Button variant="secondary" className="flex items-center gap-2"> <Button
variant="primary"
disabled
size="md"
className="flex items-center gap-3"
>
<FilterOutlined /> <FilterOutlined />
Filters Filters
</Button> </Button>
+2 -2
View File
@@ -45,14 +45,14 @@ export const Input: FC<TInputProps> = ({
}; };
const mergedClassName = cn( const mergedClassName = cn(
'px-[12px] py-[8px] text-neutral-800 placeholder:text-neutral-300 border border-neutral-200 hover:border-blue-300 focus:outline-1 focus:outline-blue-500 rounded-md font-bai-jamjuree w-full', 'px-[12px] py-[8px] text-neutral-800 placeholder:text-neutral-300 border border-neutral-200 hover:border-blue-300 focus:outline-1 focus:outline-blue-500 rounded-md font-bai-jamjuree min-w-70',
sizeClasses[size].textSize, sizeClasses[size].textSize,
disabled && disabledClass, disabled && disabledClass,
className className
); );
return ( return (
<div className="relative inline-flex min-w-70 items-center"> <div className="relative flex items-center">
<input <input
className={mergedClassName} className={mergedClassName}
type={type === 'password' && showPassword ? 'text' : type} type={type === 'password' && showPassword ? 'text' : type}
@@ -45,7 +45,7 @@ export const Pagination: FC<PaginationProps> = ({
}; };
return ( return (
<div className="flex items-center justify-center mt-4 gap-[40px]"> <div className="flex items-center justify-center gap-[40px]">
<button <button
onClick={() => currentPage > 1 && onPageChange(currentPage - 1)} onClick={() => currentPage > 1 && onPageChange(currentPage - 1)}
disabled={currentPage === 1} disabled={currentPage === 1}