-
Delete All Data
-
+
+
+ Delete All Data
+
+
This will permanently delete all your clients, businesses,
invoices, and related data. This action cannot be undone.
@@ -447,10 +469,12 @@ export default function SettingsPage() {
-
+
- Are you absolutely sure?
-
+
+ Are you absolutely sure?
+
+
This action cannot be undone. This will permanently delete
all your:
@@ -463,7 +487,7 @@ export default function SettingsPage() {
Type{" "}
-
+
DELETE ALL DATA
{" "}
to confirm:
diff --git a/src/components/ui/skeleton.tsx b/src/components/ui/skeleton.tsx
index 85b66b1..546d293 100644
--- a/src/components/ui/skeleton.tsx
+++ b/src/components/ui/skeleton.tsx
@@ -4,7 +4,10 @@ function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
return (
);
@@ -17,14 +20,14 @@ export function DashboardStatsSkeleton() {
{Array.from({ length: 4 }).map((_, i) => (
))}
@@ -37,16 +40,16 @@ export function DashboardCardsSkeleton() {
{Array.from({ length: 2 }).map((_, i) => (
))}
@@ -56,12 +59,12 @@ export function DashboardCardsSkeleton() {
export function DashboardActivitySkeleton() {
return (
-
-
+
);
@@ -73,21 +76,21 @@ export function TableSkeleton({ rows = 5 }: { rows?: number }) {
{/* Search and filters */}
{/* Table */}
-
-
+
+
@@ -96,12 +99,12 @@ export function TableSkeleton({ rows = 5 }: { rows?: number }) {
{Array.from({ length: rows }).map((_, i) => (
-
-
-
-
-
-
+
+
+
+
+
+
))}
@@ -110,11 +113,11 @@ export function TableSkeleton({ rows = 5 }: { rows?: number }) {
{/* Pagination */}
@@ -127,33 +130,33 @@ export function FormSkeleton() {
);
@@ -166,41 +169,41 @@ export function InvoiceViewSkeleton() {
{/* Header */}
{/* Client info */}
-
-
-
-
+
+
+
+
-
-
-
+
+
+
{/* Items table */}
-
-
-
+
+
+
{Array.from({ length: 3 }).map((_, i) => (
-
-
-
-
-
+
+
+
+
+
))}
@@ -210,8 +213,8 @@ export function InvoiceViewSkeleton() {
{/* Total */}
diff --git a/src/components/ui/universal-table.tsx b/src/components/ui/universal-table.tsx
index 4ab8427..b7203a8 100644
--- a/src/components/ui/universal-table.tsx
+++ b/src/components/ui/universal-table.tsx
@@ -646,39 +646,39 @@ export function UniversalTable({ resource }: UniversalTableProps) {
return Array.from({ length: skeletonCount }).map((_, index) => (
-
+
-
+
-
+
-
+
{resource === "invoices" && (
<>
-
+
-
+
>
)}
{resource === "businesses" && (
<>
-
+
-
+
>
)}
-
+
));
@@ -1258,9 +1258,9 @@ export function UniversalTable({ resource }: UniversalTableProps) {
key={`skeleton-card-${index}`}
className="flex flex-col gap-2 rounded-2xl border border-gray-200 bg-white/90 p-4 shadow-xl dark:border-gray-700 dark:bg-gray-800/90"
>
-
-
-
+
+
+
))
) : filteredAndSortedData.length === 0 ? (