diff --git a/src/app/account/page.tsx b/src/app/account/page.tsx
index fae73de..4bc3d46 100644
--- a/src/app/account/page.tsx
+++ b/src/app/account/page.tsx
@@ -42,7 +42,7 @@ export default async function AccountPage() {
return (
-
+
Hey, {user?.username}!
This is your account overview.
@@ -81,7 +81,7 @@ export default async function AccountPage() {
-
+
{
process.env.NODE_ENV === 'development' && (
diff --git a/src/app/categories/columns.tsx b/src/app/categories/columns.tsx
index 196bcdd..bd8e60d 100644
--- a/src/app/categories/columns.tsx
+++ b/src/app/categories/columns.tsx
@@ -25,6 +25,7 @@ export const columns = (
);
},
+ size: 65,
},
{
accessorKey: 'createdAt',
diff --git a/src/app/entities/columns.tsx b/src/app/entities/columns.tsx
index a56dc66..90b3754 100644
--- a/src/app/entities/columns.tsx
+++ b/src/app/entities/columns.tsx
@@ -17,6 +17,7 @@ export const columns = (
{
accessorKey: 'type',
header: 'Type',
+ size: 100,
},
{
accessorKey: 'createdAt',
diff --git a/src/app/payments/columns.tsx b/src/app/payments/columns.tsx
index 32a2157..d3b950e 100644
--- a/src/app/payments/columns.tsx
+++ b/src/app/payments/columns.tsx
@@ -18,6 +18,7 @@ export const columns = (
cell: ({row}) => {
return format(row.original.date, 'PPP');
},
+ size: 175,
},
{
accessorKey: 'amount',
@@ -28,6 +29,7 @@ export const columns = (
currency: 'EUR',
}).format(row.getValue('amount') as number / 100);
},
+ size: 70,
},
{
accessorKey: 'payorId',
@@ -36,6 +38,7 @@ export const columns = (
const entity = entities.find((entity) => entity.id === row.original.payorId);
return entity?.name ?? '-';
},
+ size: 200,
},
{
accessorKey: 'payeeId',
@@ -44,6 +47,7 @@ export const columns = (
const entity = entities.find((entity) => entity.id === row.original.payeeId);
return entity?.name ?? '-';
},
+ size: 200,
},
{
accessorKey: 'categoryId',
@@ -60,10 +64,12 @@ export const columns = (
);
},
+ size: 200,
},
{
accessorKey: 'note',
header: 'Note',
+ size: 200,
},
{
id: 'actions',
diff --git a/src/components/paymentPageClientComponents.tsx b/src/components/paymentPageClientComponents.tsx
index 22fa031..d25f5df 100644
--- a/src/components/paymentPageClientComponents.tsx
+++ b/src/components/paymentPageClientComponents.tsx
@@ -100,20 +100,6 @@ export default function PaymentPageClientContent({
);
};
- const entitiesMapped = entities?.map((entity) => {
- return {
- label: entity.name,
- value: entity.id,
- };
- }) ?? [];
-
- const categoriesMapped = categories?.map((category) => {
- return {
- label: category.name,
- value: category.id,
- };
- }) ?? [];
-
return (
diff --git a/src/components/ui/data-table.tsx b/src/components/ui/data-table.tsx
index c522f86..d672362 100644
--- a/src/components/ui/data-table.tsx
+++ b/src/components/ui/data-table.tsx
@@ -45,7 +45,8 @@ export function DataTable
({
{headerGroup.headers.map((header) => {
return (
-
+
{header.isPlaceholder
? null
: flexRender(