From a7450325a18024bb3dcf812a98d8fe2f11176ae8 Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 Date: Mon, 12 Jun 2023 18:14:03 +0000 Subject: [PATCH] Make preview button say "edit" when in preview mode (#1164) Co-authored-by: Dessalines --- src/shared/components/common/markdown-textarea.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/components/common/markdown-textarea.tsx b/src/shared/components/common/markdown-textarea.tsx index b92170d8..38a2c2ed 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 */}