update: add a second New from template action to FileMenu
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
6a3e37f4c1
commit
0b925a4d6a
@@ -27,6 +27,7 @@ function useWindowWidth() {
|
||||
export function FileBar(properties: {
|
||||
model: Model;
|
||||
newModel: () => void;
|
||||
newModelFromTemplate: () => void;
|
||||
setModel: (key: string) => void;
|
||||
onModelUpload: (blob: ArrayBuffer, fileName: string) => Promise<void>;
|
||||
onDelete: () => void;
|
||||
@@ -52,6 +53,7 @@ export function FileBar(properties: {
|
||||
<Divider />
|
||||
<FileMenu
|
||||
newModel={properties.newModel}
|
||||
newModelFromTemplate={properties.newModelFromTemplate}
|
||||
setModel={properties.setModel}
|
||||
onModelUpload={properties.onModelUpload}
|
||||
onDownload={async () => {
|
||||
|
||||
Reference in New Issue
Block a user