diff --git a/src/app/dashboard/businesses/[id]/edit/page.tsx b/src/app/dashboard/businesses/[id]/edit/page.tsx index 77f75bc..9ba59b9 100644 --- a/src/app/dashboard/businesses/[id]/edit/page.tsx +++ b/src/app/dashboard/businesses/[id]/edit/page.tsx @@ -1,24 +1,12 @@ "use client"; -import Link from "next/link"; import { useParams } from "next/navigation"; import { BusinessForm } from "~/components/forms/business-form"; -import { PageHeader } from "~/components/layout/page-header"; export default function EditBusinessPage() { const params = useParams(); const businessId = Array.isArray(params?.id) ? params.id[0] : params?.id; if (!businessId) return null; - return ( -
{business.email}
++ Email +
++ {business.email} +
Phone
-{business.phone}
++ Phone +
++ {business.phone} +
+
Website
{business.website} @@ -116,152 +137,169 @@ export default async function BusinessDetailPage({ {business.taxId && (Tax ID
-{business.taxId}
++ Tax ID +
++ {business.taxId} +
- Address -
-{business.addressLine1}
} - {business.addressLine2 &&{business.addressLine2}
} - {(business.city ?? - business.state ?? - business.postalCode) && ( -- {[business.city, business.state, business.postalCode] - .filter(Boolean) - .join(", ")} -
- )} - {business.country &&{business.country}
} -- Business Added -
-- {formatDate(business.createdAt)} -
++ {business.addressLine1} +
+ )} + {business.addressLine2 && ( ++ {business.addressLine2} +
+ )} + {(business.city ?? + business.state ?? + business.postalCode) && ( ++ {[ + business.city, + business.state, + business.postalCode, + ] + .filter(Boolean) + .join(", ")} +
+ )} + {business.country && ( +{business.country}
+ )} +Status
-+ Business Added +
++ {formatDate(business.createdAt)} +
Default Business
-
- {business.isDefault ? (
-
- Quick Actions -
-- This business profile is used for generating invoices and - represents your company information to clients. -
+ {/* Default Business Badge */} {business.isDefault && ( -- This is your default business and will be automatically - selected when creating new invoices. -
++ Status +
++ This business profile is used for generating invoices and + represents your company information to clients. +
+ {business.isDefault && ( ++ This is your default business and will be automatically + selected when creating new invoices. +
+ )} +{business.name}
@@ -186,10 +182,10 @@ export function BusinessesDataTable({ return (