feat: enhance ui components and response handling

This commit is contained in:
2025-01-03 18:48:57 +01:00
parent 78fbcebe91
commit 83b3a747a1
11 changed files with 296 additions and 328 deletions
+3 -3
View File
@@ -8,7 +8,7 @@ interface AppHeaderProps {
const Header = ({ isEditing, setIsEditing }: AppHeaderProps) => (
<div className="flex justify-between items-center mb-6">
<h1 className="text-3xl font-bold">
<h1 className="text-4xl font-bold">
<Link
href="/"
className="text-blue-500 hover:text-blue-600 transition-colors"
@@ -17,8 +17,8 @@ const Header = ({ isEditing, setIsEditing }: AppHeaderProps) => (
Budgetable
</Link>
</h1>
<Button variant="ghost" onClick={() => setIsEditing(!isEditing)}>
{isEditing ? "Lock" : "Unlock"} Editing
<Button variant="ghost" onClick={() => setIsEditing(!isEditing)} size="lg">
<span className='text-lg'>{isEditing ? "Lock" : "Unlock"} Editing</span>
</Button>
</div>
);
+1 -1
View File
@@ -8,7 +8,7 @@ interface StatusBadgeProps {
const StatusBadge = ({ status, toggleStatus }: StatusBadgeProps) => (
<Badge
variant={status === "Paid" ? "paid" : "unpaid"}
className="cursor-pointer"
className="cursor-pointer text-[16px]"
onClick={toggleStatus}
>
{status}
+1 -1
View File
@@ -84,7 +84,7 @@ const TRow = ({
onBlur={() => handleSave(row, originalRow)}
/>
) : (
<span>{row.price.toLocaleString()} HUF</span>
<span>{row.price.toLocaleString()}</span>
)}
</TableCell>
<TableCell>
+1 -1
View File
@@ -37,7 +37,7 @@ const TWrapper = ({
handleDeleteRow,
toggleStatus,
}: TWrapperProps) => (
<Table>
<Table className="text-lg">
<TableHeader>
<TableRow>
<TableHead>Title</TableHead>
+1 -1
View File
@@ -5,7 +5,7 @@ interface TotalDisplayProps {
}
const TotalDisplay = ({ total }: TotalDisplayProps) => (
<div className="mx-2 text-left font-bold text-lg">
<div className="mx-2 text-left font-bold text-2xl">
Total: <NumberFlow value={total} />
</div>
);