Make preview button say "edit" when in preview mode (#1164)

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
This commit is contained in:
SleeplessOne1917 2023-06-12 18:14:03 +00:00 committed by GitHub
parent 1f12ce9790
commit a7450325a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -211,7 +211,7 @@ export class MarkdownTextArea extends Component<
}`} }`}
onClick={linkEvent(this, this.handlePreviewToggle)} onClick={linkEvent(this, this.handlePreviewToggle)}
> >
{i18n.t("preview")} {this.state.previewMode ? i18n.t("edit") : i18n.t("preview")}
</button> </button>
)} )}
{/* A flex expander */} {/* A flex expander */}