From: SleeplessOne1917 Date: Mon, 12 Jun 2023 18:14:03 +0000 (+0000) Subject: Make preview button say "edit" when in preview mode (#1164) X-Git-Url: http://these/git/readmes/%7Bpost.ap_id%7D?a=commitdiff_plain;h=a7450325a18024bb3dcf812a98d8fe2f11176ae8;p=lemmy-ui.git Make preview button say "edit" when in preview mode (#1164) Co-authored-by: Dessalines --- diff --git a/src/shared/components/common/markdown-textarea.tsx b/src/shared/components/common/markdown-textarea.tsx index b92170d..38a2c2e 100644 --- a/src/shared/components/common/markdown-textarea.tsx +++ b/src/shared/components/common/markdown-textarea.tsx @@ -211,7 +211,7 @@ export class MarkdownTextArea extends Component< }`} onClick={linkEvent(this, this.handlePreviewToggle)} > - {i18n.t("preview")} + {this.state.previewMode ? i18n.t("edit") : i18n.t("preview")} )} {/* A flex expander */}