mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 13:55:41 +01:00
Add Explorer toolbar and CRUD actions
cgen-d9faee6ecac24738969109faa032560b
This commit is contained in:
parent
38725741df
commit
a997c8fb08
1 changed files with 5 additions and 0 deletions
|
|
@ -110,6 +110,11 @@ export function SwitchPage() {
|
|||
<div className="switch-pane">
|
||||
<div className="switch-pane-header">Explorer</div>
|
||||
<div className="switch-pane-body">
|
||||
<div style={{ marginBottom: 8 }}>
|
||||
<button className="switch-secondary-btn" onClick={onNewFile}>New File</button>
|
||||
<button className="switch-secondary-btn" onClick={onNewFolder}>New Folder</button>
|
||||
<button className="switch-secondary-btn" onClick={onRefresh}>Refresh</button>
|
||||
</div>
|
||||
{tree.length === 0 ? (
|
||||
<div className="switch-empty">No files</div>
|
||||
) : (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue