♿ move file sharing to context menu
This commit is contained in:
@@ -1165,16 +1165,6 @@ export function MarkdownEditor(): JSX.Element {
|
||||
</span>
|
||||
)
|
||||
})()}
|
||||
<button
|
||||
className="statusbar-share-btn"
|
||||
onClick={async () => {
|
||||
const fileName = activeFilePath.split('/').pop()?.replace(/\.md$/, '') ?? 'document'
|
||||
await window.api.exportPDF(activeFileContent, fileName)
|
||||
}}
|
||||
title="Export document as PDF"
|
||||
>
|
||||
⎙
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user