Skip to content

Commit

Permalink
feat(site): add title of reset password pages
Browse files Browse the repository at this point in the history
  • Loading branch information
uonr committed May 3, 2024
1 parent d68788e commit 323954f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apps/site/src/app/[lang]/account/reset/confirm/[token]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
import { LangParams, getIntl } from '@boluo/common/server';
import { ConfirmResetPassword } from './ConfirmResetPassword';
import { Metadata } from 'next';

export function generateMetadata({ params }: { params: LangParams }): Metadata {
const intl = getIntl(params);

return {
title: intl.formatMessage({ defaultMessage: 'Reset Password' }),
};
}

interface Props {
params: { token: string };
Expand Down
10 changes: 10 additions & 0 deletions apps/site/src/app/[lang]/account/reset/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
import { LangParams, getIntl } from '@boluo/common/server';
import { ResetPassword } from './ResetPassword';
import { Metadata } from 'next';

export function generateMetadata({ params }: { params: LangParams }): Metadata {
const intl = getIntl(params);

return {
title: intl.formatMessage({ defaultMessage: 'Reset Password' }),
};
}

export default function Page() {
return (
Expand Down

0 comments on commit 323954f

Please sign in to comment.