File tree Expand file tree Collapse file tree 7 files changed +52
-9
lines changed Expand file tree Collapse file tree 7 files changed +52
-9
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ import {
9
9
CardsSkeleton ,
10
10
} from '@/app/ui/skeletons' ;
11
11
12
+ import { Metadata } from "next" ;
13
+
14
+ export const metadata : Metadata = {
15
+ title : 'Overview' ,
16
+ } ;
12
17
export default async function Page ( ) {
13
18
return (
14
19
< main >
Original file line number Diff line number Diff line change
1
+ import { Metadata } from "next" ;
2
+
3
+ export const metadata : Metadata = {
4
+ title : 'Customers' ,
5
+ } ;
6
+
1
7
export default function Page ( ) {
2
8
return < p > Customers Page</ p >
3
9
}
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ import Breadcrumbs from '@/app/ui/invoices/breadcrumbs';
3
3
import { fetchInvoiceById , fetchCustomers } from '@/app/lib/data' ;
4
4
import { notFound } from 'next/navigation' ;
5
5
6
+ import { Metadata } from "next" ;
7
+
8
+ export const metadata : Metadata = {
9
+ title : 'Edit Invoice' ,
10
+ } ;
11
+
6
12
export default async function Page ( { params } : { params : { id : string } } ) {
7
13
const id = params . id ;
8
14
const [ invoice , customers ] = await Promise . all ( [
Original file line number Diff line number Diff line change 1
1
import Form from '@/app/ui/invoices/create-form' ;
2
2
import Breadcrumbs from '@/app/ui/invoices/breadcrumbs' ;
3
3
import { fetchCustomers } from '@/app/lib/data' ;
4
+
5
+ import { Metadata } from "next" ;
6
+
7
+ export const metadata : Metadata = {
8
+ title : 'Create Invoice' ,
9
+ } ;
4
10
5
11
export default async function Page ( ) {
6
12
const customers = await fetchCustomers ( ) ;
Original file line number Diff line number Diff line change
1
+ import { Metadata } from "next" ;
1
2
import Pagination from '@/app/ui/invoices/pagination' ;
2
3
import Search from '@/app/ui/search' ;
3
4
import Table from '@/app/ui/invoices/table' ;
@@ -7,6 +8,11 @@ import { lusitana } from '@/app/ui/fonts';
7
8
import { InvoicesTableSkeleton } from '@/app/ui/skeletons' ;
8
9
import { Suspense } from 'react' ;
9
10
11
+ export const metadata : Metadata = {
12
+ title : 'Invoices' ,
13
+ description : 'Invoices' ,
14
+ } ;
15
+
10
16
export default async function Page ( {
11
17
searchParams,
12
18
} : {
Original file line number Diff line number Diff line change
1
+ import { Metadata } from "next" ;
1
2
import '@/app/ui/global.css' ;
2
- import { inter } from '@/app/ui/fonts' ;
3
+ import { inter } from '@/app/ui/fonts' ;
3
4
5
+ export const metadata : Metadata = {
6
+ title : {
7
+ template : '%s | Acme Dashboard' ,
8
+ default : 'Acme Dashboard' ,
9
+ } ,
10
+ description : 'Acme is a fictional company used for demonstration purposes only.' ,
11
+ metadataBase : new URL ( 'https://next-learn-dashboard.vercel.sh' )
12
+ }
4
13
export default function RootLayout ( {
5
- children,
6
- } : {
7
- children : React . ReactNode ;
14
+ children,
15
+ } : {
16
+ children : React . ReactNode ;
8
17
} ) {
9
- return (
10
- < html lang = "en" >
11
- < body className = { `${ inter . className } antialiased` } > { children } </ body >
12
- </ html >
13
- ) ;
18
+ return (
19
+ < html lang = "en" >
20
+ < body className = { `${ inter . className } antialiased` } > { children } </ body >
21
+ </ html >
22
+ ) ;
14
23
}
Original file line number Diff line number Diff line change 1
1
import AcmeLogo from "../ui/acme-logo" ;
2
2
import LoginForm from "../ui/login-form" ;
3
+ import { Metadata } from "next" ;
4
+
5
+ export const metadata : Metadata = {
6
+ title : 'Login' ,
7
+ } ;
3
8
4
9
export default function LoginPage ( ) {
5
10
return (
You can’t perform that action at this time.
0 commit comments