From: HKayn Date: Thu, 3 Aug 2023 16:27:06 +0000 (+0200) Subject: Fix document title of admin settings being overwritten by tagline and emoji forms... X-Git-Url: http://these/git/%22%7B%7D/%22?a=commitdiff_plain;h=8edf69559e88c77249cf341646842cc04f6e8c66;p=lemmy-ui.git Fix document title of admin settings being overwritten by tagline and emoji forms (#2003) * Fix document title of admin settings being overwritten * Remove obsolete imports --- diff --git a/src/shared/components/home/emojis-form.tsx b/src/shared/components/home/emojis-form.tsx index b24445d..d6fc2ea 100644 --- a/src/shared/components/home/emojis-form.tsx +++ b/src/shared/components/home/emojis-form.tsx @@ -11,7 +11,6 @@ import { customEmojisLookup } from "../../markdown"; import { HttpService, I18NextService } from "../../services"; import { pictrsDeleteToast, toast } from "../../toast"; import { EmojiMart } from "../common/emoji-mart"; -import { HtmlTags } from "../common/html-tags"; import { Icon, Spinner } from "../common/icon"; import { Paginator } from "../common/paginator"; @@ -66,17 +65,9 @@ export class EmojiForm extends Component { this.handlePageChange = this.handlePageChange.bind(this); this.handleEmojiClick = this.handleEmojiClick.bind(this); } - get documentTitle(): string { - return I18NextService.i18n.t("custom_emojis"); - } - render() { return (
-

{I18NextService.i18n.t("custom_emojis")}

{customEmojisLookup.size > 0 && (
diff --git a/src/shared/components/home/tagline-form.tsx b/src/shared/components/home/tagline-form.tsx index 78e506b..2d9d93b 100644 --- a/src/shared/components/home/tagline-form.tsx +++ b/src/shared/components/home/tagline-form.tsx @@ -3,7 +3,6 @@ import { capitalizeFirstLetter } from "@utils/helpers"; import { Component, InfernoMouseEvent, linkEvent } from "inferno"; import { EditSite, Tagline } from "lemmy-js-client"; import { I18NextService } from "../../services"; -import { HtmlTags } from "../common/html-tags"; import { Icon, Spinner } from "../common/icon"; import { MarkdownTextArea } from "../common/markdown-textarea"; @@ -26,17 +25,10 @@ export class TaglineForm extends Component { constructor(props: any, context: any) { super(props, context); } - get documentTitle(): string { - return I18NextService.i18n.t("taglines"); - } render() { return (
-

{I18NextService.i18n.t("taglines")}