renamed the event

pull/5370/head
lianahus 4 years ago committed by Liana Husikyan
parent 1bf6278770
commit 6d3514cab5
  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