From 8bfd17c8d4ad07088fe47c1f1b6fb9f98782d31f Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 11 Oct 2023 22:30:20 -0400 Subject: [PATCH] Remove creator name in template menu, closes #5976 --- app/menus/TemplatesMenu.tsx | 23 +--------------------- shared/i18n/locales/en_US/translation.json | 1 - 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/app/menus/TemplatesMenu.tsx b/app/menus/TemplatesMenu.tsx index 6d4937410..a7d5e3983 100644 --- a/app/menus/TemplatesMenu.tsx +++ b/app/menus/TemplatesMenu.tsx @@ -3,8 +3,6 @@ import { DocumentIcon } from "outline-icons"; import * as React from "react"; import { useTranslation } from "react-i18next"; import { MenuButton, useMenuState } from "reakit/Menu"; -import styled from "styled-components"; -import { ellipsis } from "@shared/styles"; import Document from "~/models/Document"; import Button from "~/components/Button"; import ContextMenu from "~/components/ContextMenu"; @@ -49,17 +47,7 @@ function TemplatesMenu({ onSelectTemplate, document }: Props) { } {...menu} > - - - {replaceTitleVariables(template.titleWithDefault, user)} - -
- - {t("By {{ author }}", { - author: template.createdBy.name, - })} - -
+ {replaceTitleVariables(template.titleWithDefault, user)} ); @@ -83,13 +71,4 @@ function TemplatesMenu({ onSelectTemplate, document }: Props) { ); } -const TemplateItem = styled.div` - text-align: left; - ${ellipsis()} -`; - -const Author = styled.div` - font-size: 13px; -`; - export default observer(TemplatesMenu); diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 9eec48c2c..397a79eb7 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -395,7 +395,6 @@ "Contents": "Contents", "Headings you add to the document will appear here": "Headings you add to the document will appear here", "Table of contents": "Table of contents", - "By {{ author }}": "By {{ author }}", "Change role to admin": "Change role to admin", "Change role to member": "Change role to member", "Change role to viewer": "Change role to viewer",