From 3cc3cd8cf888bcbfea43c7bf8de4906e91cf7be2 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 27 Aug 2022 20:20:42 +0200 Subject: [PATCH] fix: Do not replace SSR title with 'Untitled', closes #3985 --- app/scenes/Document/components/Loading.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/scenes/Document/components/Loading.tsx b/app/scenes/Document/components/Loading.tsx index bcd3d2375..fb998bb02 100644 --- a/app/scenes/Document/components/Loading.tsx +++ b/app/scenes/Document/components/Loading.tsx @@ -1,6 +1,5 @@ import { Location } from "history"; import * as React from "react"; -import { useTranslation } from "react-i18next"; import CenteredContent from "~/components/CenteredContent"; import PageTitle from "~/components/PageTitle"; import PlaceholderDocument from "~/components/PlaceholderDocument"; @@ -11,12 +10,9 @@ type Props = { }; export default function Loading({ location }: Props) { - const { t } = useTranslation(); return ( - + {location.state?.title && }