Reorder and enhance Markdown preview button in editor footer
This commit is contained in:
14
src/App.tsx
14
src/App.tsx
@@ -968,6 +968,13 @@ export default function App() {
|
|||||||
<div className="editor__footer">
|
<div className="editor__footer">
|
||||||
{hasText ? (
|
{hasText ? (
|
||||||
<>
|
<>
|
||||||
|
<button
|
||||||
|
className="button"
|
||||||
|
type="button"
|
||||||
|
onClick={() => setMarkdownPreview((value) => !value)}
|
||||||
|
>
|
||||||
|
{markdownPreview ? "Edit" : "Preview Markdown"}
|
||||||
|
</button>
|
||||||
<button className="button" onClick={handleExportText}>
|
<button className="button" onClick={handleExportText}>
|
||||||
Export Text
|
Export Text
|
||||||
</button>
|
</button>
|
||||||
@@ -981,13 +988,6 @@ export default function App() {
|
|||||||
</button>
|
</button>
|
||||||
</>
|
</>
|
||||||
) : null}
|
) : null}
|
||||||
<button
|
|
||||||
className="button"
|
|
||||||
type="button"
|
|
||||||
onClick={() => setMarkdownPreview((value) => !value)}
|
|
||||||
>
|
|
||||||
{markdownPreview ? "Edit" : "Preview Markdown"}
|
|
||||||
</button>
|
|
||||||
</>
|
</>
|
||||||
) : null}
|
) : null}
|
||||||
{hasDraft && !isViewingHistory ? (
|
{hasDraft && !isViewingHistory ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user