fix: Do not replace SSR title with 'Untitled', closes #3985
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import { Location } from "history";
|
import { Location } from "history";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
|
||||||
import CenteredContent from "~/components/CenteredContent";
|
import CenteredContent from "~/components/CenteredContent";
|
||||||
import PageTitle from "~/components/PageTitle";
|
import PageTitle from "~/components/PageTitle";
|
||||||
import PlaceholderDocument from "~/components/PlaceholderDocument";
|
import PlaceholderDocument from "~/components/PlaceholderDocument";
|
||||||
@@ -11,12 +10,9 @@ type Props = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default function Loading({ location }: Props) {
|
export default function Loading({ location }: Props) {
|
||||||
const { t } = useTranslation();
|
|
||||||
return (
|
return (
|
||||||
<Container column auto>
|
<Container column auto>
|
||||||
<PageTitle
|
{location.state?.title && <PageTitle title={location.state.title} />}
|
||||||
title={location.state ? location.state.title : t("Untitled")}
|
|
||||||
/>
|
|
||||||
<CenteredContent>
|
<CenteredContent>
|
||||||
<PlaceholderDocument />
|
<PlaceholderDocument />
|
||||||
</CenteredContent>
|
</CenteredContent>
|
||||||
|
|||||||
Reference in New Issue
Block a user