flow: Convert to different <Trans> component syntax for flow compatability

This commit is contained in:
Tom Moor
2021-01-31 21:14:14 -08:00
parent 7066a45323
commit e845652cb8
6 changed files with 37 additions and 35 deletions

View File

@@ -31,9 +31,11 @@ function NewChildDocumentMenu({ document, label }: Props) {
{
title: (
<span>
<Trans>
New document in <strong>{{ collectionName }}</strong>
</Trans>
<Trans
defaults="New document in <em>{{ collectionName }}</em>"
values={{ collectionName }}
components={{ em: <strong /> }}
/>
</span>
),
to: newDocumentUrl(document.collectionId),