-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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
1 parent
e8b8b73
commit daecd37
Showing
5 changed files
with
39 additions
and
41 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
import { SignIn } from '@clerk/nextjs'; | ||
|
||
import PageTitle from './PageTitle'; | ||
import { metadataModule } from '@/server/metadata'; | ||
import { translation } from '@/server/translation'; | ||
|
||
export const generateMetadata = async () => { | ||
const { t } = await translation('clerk'); | ||
return metadataModule.generate({ | ||
description: t('signIn.start.subtitle'), | ||
title: t('signIn.start.title', { applicationName: 'LobeChat' }), | ||
url: '/login', | ||
}); | ||
}; | ||
|
||
const Page = () => { | ||
return ( | ||
<> | ||
<PageTitle /> | ||
<SignIn path="/login" /> | ||
</> | ||
); | ||
return <SignIn path="/login" />; | ||
}; | ||
|
||
Page.displayName = 'Login'; | ||
|
||
export default Page; |
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
import { SignUp } from '@clerk/nextjs'; | ||
|
||
import PageTitle from './PageTitle'; | ||
import { metadataModule } from '@/server/metadata'; | ||
import { translation } from '@/server/translation'; | ||
|
||
export const generateMetadata = async () => { | ||
const { t } = await translation('clerk'); | ||
return metadataModule.generate({ | ||
description: t('signUp.start.subtitle'), | ||
title: t('signUp.start.title'), | ||
url: '/signup', | ||
}); | ||
}; | ||
|
||
const Page = () => { | ||
return ( | ||
<> | ||
<PageTitle /> | ||
<SignUp path="/signup" /> | ||
</> | ||
); | ||
return <SignUp path="/signup" />; | ||
}; | ||
|
||
Page.displayName = 'SignUp'; | ||
|
||
export default Page; |
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