mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-26 06:11:15 +00:00
Make preview button say "edit" when in preview mode (#1164)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
This commit is contained in:
parent
1f12ce9790
commit
a7450325a1
1 changed files with 1 additions and 1 deletions
|
@ -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 */}
|
||||||
|
|
Loading…
Reference in a new issue