diff --git a/apps/remix-ide/src/app/panels/file-panel.js b/apps/remix-ide/src/app/panels/file-panel.js index c76d822c94..15434ec6ce 100644 --- a/apps/remix-ide/src/app/panels/file-panel.js +++ b/apps/remix-ide/src/app/panels/file-panel.js @@ -175,12 +175,12 @@ module.exports = class Filepanel extends ViewPlugin { } async createNewFile () { - if (!this.workspaceExists()) this.createWorkspace('generated_workspace') + if (!this.workspaceExists()) this.createWorkspace('default_workspace') return await this.request.createNewFile() } async uploadFile (event) { - if (!this.workspaceExists()) this.createWorkspace('generated_workspace') + if (!this.workspaceExists()) this.createWorkspace('default_workspace') return await this.request.uploadFile(event) } diff --git a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx index c53d2336e2..ff1ea795c5 100644 --- a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx +++ b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx @@ -2,7 +2,7 @@ import React, { useState, useEffect, useRef } from 'react' // eslint-disable-lin import { FileExplorer } from '@remix-ui/file-explorer' // eslint-disable-line import './remix-ui-workspace.css' import { ModalDialog } from '@remix-ui/modal-dialog' // eslint-disable-line -import { Toaster } from '@remix-ui/toaster' +import { Toaster } from '@remix-ui/toaster'// eslint-disable-line /* eslint-disable-next-line */ export interface WorkspaceProps { @@ -106,7 +106,7 @@ export const Workspace = (props: WorkspaceProps) => { try { await props.createWorkspace(workspaceName) await setWorkspace(workspaceName) - toast("New default workspace has been created.") + toast('New default workspace has been created.') } catch (e) { modalMessage('Create Default Workspace', e.message) console.error(e) @@ -144,7 +144,7 @@ export const Workspace = (props: WorkspaceProps) => { handleHide: null }, loadingLocalhost: false, - toasterMsg: '', + toasterMsg: '' }) const toast = (message: string) => {