Commit a9a96b7e authored by lianahus's avatar lianahus Committed by Liana Husikyan

linter

parent 98f5d8cc
......@@ -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)
}
......
......@@ -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) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment