-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
3,832 additions
and
2,130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
{ | ||
"extends": [ | ||
"next/core-web-vitals", | ||
"next/typescript" | ||
] | ||
"extends": ["next/core-web-vitals", "next/typescript"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Ignore artifacts: | ||
build | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"plugins": ["prettier-plugin-tailwindcss"], | ||
"tailwindConfig": "./tailwind.config.ts" | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
## Next.js Busbuzzer | ||
## Next.js Busbuzzer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import DashboardSkeleton from '@/app/ui/skeletons'; | ||
import DashboardSkeleton from "@/app/ui/skeletons"; | ||
|
||
export default function Loading() { | ||
return <DashboardSkeleton />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,32 @@ | ||
import Form from '@/app/ui/invoices/edit-form'; | ||
import Breadcrumbs from '@/app/ui/invoices/breadcrumbs'; | ||
import { fetchCustomers, fetchInvoiceById } from '@/app/lib/data'; | ||
import { notFound } from 'next/navigation'; | ||
|
||
import Form from "@/app/ui/invoices/edit-form"; | ||
import Breadcrumbs from "@/app/ui/invoices/breadcrumbs"; | ||
import { fetchCustomers, fetchInvoiceById } from "@/app/lib/data"; | ||
import { notFound } from "next/navigation"; | ||
|
||
export default async function Page({ params }: { params: { id: string } }) { | ||
const id = params.id; | ||
const [invoice, customers] = await Promise.all([ | ||
fetchInvoiceById(id), | ||
fetchCustomers(), | ||
]); | ||
console.log(invoice) | ||
if (!invoice) { | ||
notFound(); | ||
} | ||
return ( | ||
<main> | ||
<Breadcrumbs | ||
breadcrumbs={[ | ||
{ label: 'Invoices', href: '/dashboard/invoices' }, | ||
{ | ||
label: 'Edit Invoice', | ||
href: `/dashboard/invoices/${id}/edit`, | ||
active: true, | ||
}, | ||
]} | ||
/> | ||
{/* <Form /> */} | ||
<Form invoice={invoice} customers={customers} /> | ||
</main> | ||
); | ||
const id = params.id; | ||
const [invoice, customers] = await Promise.all([ | ||
fetchInvoiceById(id), | ||
fetchCustomers(), | ||
]); | ||
console.log(invoice); | ||
if (!invoice) { | ||
notFound(); | ||
} | ||
return ( | ||
<main> | ||
<Breadcrumbs | ||
breadcrumbs={[ | ||
{ label: "Invoices", href: "/dashboard/invoices" }, | ||
{ | ||
label: "Edit Invoice", | ||
href: `/dashboard/invoices/${id}/edit`, | ||
active: true, | ||
}, | ||
]} | ||
/> | ||
{/* <Form /> */} | ||
<Form invoice={invoice} customers={customers} /> | ||
</main> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
import { afacad } from '@/app/ui/fonts'; | ||
|
||
|
||
import { afacad } from "@/app/ui/fonts"; | ||
|
||
export default function Page() { | ||
|
||
return ( | ||
<div className="w-full"> | ||
return ( | ||
<div className="w-full"> | ||
<div className="flex w-full items-center justify-between"> | ||
<h1 className={`${afacad.className} text-2xl`}>School Routes</h1> | ||
</div> | ||
</div> | ||
) | ||
} | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.