renamed the event

pull/1120/head
lianahus 4 years ago committed by Liana Husikyan
parent 5ad4f0e25c
commit 35be771eec
  1. 2
      apps/remix-ide/src/app/files/workspaceFileProvider.js
  2. 2
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -82,7 +82,7 @@ class WorkspaceFileProvider extends FileProvider {
createWorkspace (name) {
if (!name) name = 'default_workspace'
this.event.trigger('create_workspace', [name])
this.event.trigger('createWorkspace', [name])
}
}

@ -105,7 +105,7 @@ export const Workspace = (props: WorkspaceProps) => {
remixdExplorer.loading()
})
props.workspace.event.register('create_workspace', (name) => {
props.workspace.event.register('createWorkspace', (name) => {
createNewWorkspace(name)
})

Loading…
Cancel
Save