Skip to content

Commit

Permalink
metadata multiple pages
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyOooh committed Jan 28, 2024
1 parent e73e383 commit 03f1130
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import React from 'react';
import { termsAndConditions } from './termsAndConditions';
import { Metadata } from 'next';

type Props = {};
export const metadata: Metadata = {
title: 'Event Dee - terms and conditions',
};

export default function TermsAndCoonditions({}: Props) {
export default function TermsAndCoonditions() {
return (
<>
<h1>TermsAndCoonditions</h1>
Expand Down
5 changes: 5 additions & 0 deletions apps/app/src/app/(protected)/events/create/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { Metadata } from 'next';
import { CreateEventForm } from './form';

export const metadata: Metadata = {
title: 'Event Dee - Create Event',
};

export default function CreateEvent() {
return (
<div className='flex flex-col gap-4 w-full'>
Expand Down
5 changes: 5 additions & 0 deletions apps/app/src/app/(protected)/profile/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { PhotoForm } from './components/photo-form';
import { EditProfileForm } from './components/form';
import { Metadata } from 'next';

export const metadata: Metadata = {
title: 'Event Dee - Profile',
};

/*
* This is the Profile page as seen from the user's perspective with edittable fields
Expand Down
7 changes: 5 additions & 2 deletions apps/app/src/app/(protected)/search/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { Metadata } from 'next';
import React from 'react';

type Props = {};
export const metadata: Metadata = {
title: 'Event Dee - Search',
};

export default function SearchPage(props: Props) {
export default function SearchPage() {
return <div>SearchPage</div>;
}
7 changes: 5 additions & 2 deletions apps/app/src/app/(protected)/settings/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import React from 'react';
import { ChangePasswordForm } from './components/change-pw-form';
import { DeleteAccountForm } from './components/delete-acc-form';
import { Metadata } from 'next';

type Props = {};
export const metadata: Metadata = {
title: 'Event Dee - Settings',
};

export default function SettingsPage(props: Props) {
export default function SettingsPage() {
return (
<div className='flex flex-col gap-4 w-full'>
<h1 className='text-3xl'>Account Settings</h1>
Expand Down

0 comments on commit 03f1130

Please sign in to comment.