diff --git a/app/dashboard/(overview)/loading.tsx b/app/dashboard/(overview)/loading.tsx
deleted file mode 100644
index 3eeaa28..0000000
--- a/app/dashboard/(overview)/loading.tsx
+++ /dev/null
@@ -1,5 +0,0 @@
-import DashboardSkeleton from '@/app/ui/skeletons';
-
-export default function Loading() {
- return ;
-}
diff --git a/app/dashboard/(overview)/page.tsx b/app/dashboard/(overview)/page.tsx
deleted file mode 100644
index e1a9674..0000000
--- a/app/dashboard/(overview)/page.tsx
+++ /dev/null
@@ -1,33 +0,0 @@
-import CardWrapper from '@/app/ui/dashboard/cards';
-import RevenueChart from '@/app/ui/dashboard/revenue-chart';
-import LatestInvoices from '@/app/ui/dashboard/latest-invoices';
-import { lusitana } from '@/app/ui/fonts';
-import { Suspense } from 'react';
-import {
- RevenueChartSkeleton,
- LatestInvoicesSkeleton,
- CardsSkeleton,
-} from '@/app/ui/skeletons';
-
-export default async function Page() {
- return (
-
-
- Dashboard
-
-
- }>
-
-
-
-
- }>
-
-
- }>
-
-
-
-
- );
-}
diff --git a/app/dashboard/customers/page.tsx b/app/dashboard/customers/page.tsx
deleted file mode 100644
index caf9718..0000000
--- a/app/dashboard/customers/page.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-import { fetchFilteredCustomers } from '@/app/lib/data';
-import CustomersTable from '@/app/ui/customers/table';
-import { Metadata } from 'next';
-
-export const metadata: Metadata = {
- title: 'Customers',
-};
-
-export default async function Page({
- searchParams,
-}: {
- searchParams?: {
- query?: string;
- page?: string;
- };
-}) {
- const query = searchParams?.query || '';
-
- const customers = await fetchFilteredCustomers(query);
-
- return (
-
-
-
- );
-}
diff --git a/app/dashboard/invoices/[id]/edit/not-found.tsx b/app/dashboard/invoices/[id]/edit/not-found.tsx
deleted file mode 100644
index 444667f..0000000
--- a/app/dashboard/invoices/[id]/edit/not-found.tsx
+++ /dev/null
@@ -1,18 +0,0 @@
-import Link from 'next/link';
-import { FaceFrownIcon } from '@heroicons/react/24/outline';
-
-export default function NotFound() {
- return (
-
-
- 404 Not Found
- Could not find the requested invoice.
-
- Go Back
-
-
- );
-}
diff --git a/app/dashboard/invoices/[id]/edit/page.tsx b/app/dashboard/invoices/[id]/edit/page.tsx
deleted file mode 100644
index c6f2391..0000000
--- a/app/dashboard/invoices/[id]/edit/page.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-import Form from '@/app/ui/invoices/edit-form';
-import Breadcrumbs from '@/app/ui/invoices/breadcrumbs';
-import { fetchInvoiceById, fetchCustomers } from '@/app/lib/data';
-import { notFound } from 'next/navigation';
-import { Metadata } from 'next';
-
-export const metadata: Metadata = {
- title: 'Edit Invoice',
-};
-
-export default async function Page({ params }: { params: { id: string } }) {
- const id = params.id;
- const [invoice, customers] = await Promise.all([
- fetchInvoiceById(id),
- fetchCustomers(),
- ]);
-
- if (!invoice) {
- notFound();
- }
-
- return (
-
-
-
-
- );
-}
diff --git a/app/dashboard/invoices/create/page.tsx b/app/dashboard/invoices/create/page.tsx
deleted file mode 100644
index de8107c..0000000
--- a/app/dashboard/invoices/create/page.tsx
+++ /dev/null
@@ -1,28 +0,0 @@
-import { fetchCustomers } from '@/app/lib/data';
-import Form from '@/app/ui/invoices/create-form';
-import Breadcrumbs from '@/app/ui/invoices/breadcrumbs';
-import { Metadata } from 'next';
-
-export const metadata: Metadata = {
- title: 'Create Invoice',
-};
-
-export default async function Page() {
- const customers = await fetchCustomers();
-
- return (
-
-
-
-
- );
-}
diff --git a/app/dashboard/invoices/error.tsx b/app/dashboard/invoices/error.tsx
deleted file mode 100644
index 551faa9..0000000
--- a/app/dashboard/invoices/error.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-'use client';
-
-import { useEffect } from 'react';
-
-export default function Error({
- error,
- reset,
-}: {
- error: Error & { digest?: string };
- reset: () => void;
-}) {
- useEffect(() => {
- // Optionally log the error to an error reporting service
- console.error(error);
- }, [error]);
-
- return (
-
- Something went wrong!
-
-
- );
-}
diff --git a/app/dashboard/invoices/page.tsx b/app/dashboard/invoices/page.tsx
deleted file mode 100644
index d92624f..0000000
--- a/app/dashboard/invoices/page.tsx
+++ /dev/null
@@ -1,45 +0,0 @@
-import Pagination from '@/app/ui/invoices/pagination';
-import Search from '@/app/ui/search';
-import Table from '@/app/ui/invoices/table';
-import { CreateInvoice } from '@/app/ui/invoices/buttons';
-import { lusitana } from '@/app/ui/fonts';
-import { InvoicesTableSkeleton } from '@/app/ui/skeletons';
-import { Suspense } from 'react';
-import { fetchInvoicesPages } from '@/app/lib/data';
-import { Metadata } from 'next';
-
-export const metadata: Metadata = {
- title: 'Invoices',
-};
-
-export default async function Page({
- searchParams,
-}: {
- searchParams?: {
- query?: string;
- page?: string;
- };
-}) {
- const query = searchParams?.query || '';
- const currentPage = Number(searchParams?.page) || 1;
-
- const totalPages = await fetchInvoicesPages(query);
-
- return (
-
-
-
Invoices
-
-
-
-
-
-
}>
-
-
-
-
- );
-}
diff --git a/app/dashboard/layout.tsx b/app/dashboard/layout.tsx
deleted file mode 100644
index 8fbc323..0000000
--- a/app/dashboard/layout.tsx
+++ /dev/null
@@ -1,12 +0,0 @@
-import SideNav from '@/app/ui/dashboard/sidenav';
-
-export default function Layout({ children }: { children: React.ReactNode }) {
- return (
-
- );
-}