mirror of
https://github.com/documenso/documenso.git
synced 2025-11-16 09:41:35 +10:00
fix: additional backwards compat
This commit is contained in:
@ -36,7 +36,6 @@ const DOCUMENT_SOURCE_LABELS: { [key in DocumentSource]: MessageDescriptor } = {
|
||||
DOCUMENT: msg`Document`,
|
||||
TEMPLATE: msg`Template`,
|
||||
TEMPLATE_DIRECT_LINK: msg`Direct link`,
|
||||
NONE: msg`None`,
|
||||
};
|
||||
|
||||
const ZDocumentSearchParamsSchema = ZUrlSearchParamsSchema.extend({
|
||||
|
||||
@ -117,17 +117,11 @@ export const TemplatePageViewRecentActivity = ({
|
||||
className="text-muted-foreground dark:text-muted-foreground/70 flex-auto truncate py-0.5 text-xs leading-5"
|
||||
>
|
||||
{match(document.source)
|
||||
.with(
|
||||
DocumentSource.DOCUMENT,
|
||||
DocumentSource.TEMPLATE,
|
||||
DocumentSource.NONE,
|
||||
() => (
|
||||
<Trans>
|
||||
Document created by{' '}
|
||||
<span className="font-bold">{document.user.name}</span>
|
||||
</Trans>
|
||||
),
|
||||
)
|
||||
.with(DocumentSource.DOCUMENT, DocumentSource.TEMPLATE, () => (
|
||||
<Trans>
|
||||
Document created by <span className="font-bold">{document.user.name}</span>
|
||||
</Trans>
|
||||
))
|
||||
.with(DocumentSource.TEMPLATE_DIRECT_LINK, () => (
|
||||
<Trans>
|
||||
Document created using a <span className="font-bold">direct link</span>
|
||||
|
||||
Reference in New Issue
Block a user