chore(deps): update react to 18 (#2943)
This commit is contained in:
@@ -6,15 +6,16 @@ interface PageTitleProps {
|
||||
title: string | (string | undefined)[];
|
||||
}
|
||||
|
||||
const PageTitle: React.FC<PageTitleProps> = ({ title }) => {
|
||||
const PageTitle = ({ title }: PageTitleProps) => {
|
||||
const settings = useSettings();
|
||||
|
||||
const titleText = `${
|
||||
Array.isArray(title) ? title.filter(Boolean).join(' - ') : title
|
||||
} - ${settings.currentSettings.applicationTitle}`;
|
||||
|
||||
return (
|
||||
<Head>
|
||||
<title>
|
||||
{Array.isArray(title) ? title.filter(Boolean).join(' - ') : title} -{' '}
|
||||
{settings.currentSettings.applicationTitle}
|
||||
</title>
|
||||
<title>{titleText}</title>
|
||||
</Head>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user