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 { ...@@ -175,12 +175,12 @@ module.exports = class Filepanel extends ViewPlugin {
} }
async createNewFile () { async createNewFile () {
if (!this.workspaceExists()) this.createWorkspace('generated_workspace') if (!this.workspaceExists()) this.createWorkspace('default_workspace')
return await this.request.createNewFile() return await this.request.createNewFile()
} }
async uploadFile (event) { async uploadFile (event) {
if (!this.workspaceExists()) this.createWorkspace('generated_workspace') if (!this.workspaceExists()) this.createWorkspace('default_workspace')
return await this.request.uploadFile(event) return await this.request.uploadFile(event)
} }
......
...@@ -2,7 +2,7 @@ import React, { useState, useEffect, useRef } from 'react' // eslint-disable-lin ...@@ -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 { FileExplorer } from '@remix-ui/file-explorer' // eslint-disable-line
import './remix-ui-workspace.css' import './remix-ui-workspace.css'
import { ModalDialog } from '@remix-ui/modal-dialog' // eslint-disable-line 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 */ /* eslint-disable-next-line */
export interface WorkspaceProps { export interface WorkspaceProps {
...@@ -106,7 +106,7 @@ export const Workspace = (props: WorkspaceProps) => { ...@@ -106,7 +106,7 @@ export const Workspace = (props: WorkspaceProps) => {
try { try {
await props.createWorkspace(workspaceName) await props.createWorkspace(workspaceName)
await setWorkspace(workspaceName) await setWorkspace(workspaceName)
toast("New default workspace has been created.") toast('New default workspace has been created.')
} catch (e) { } catch (e) {
modalMessage('Create Default Workspace', e.message) modalMessage('Create Default Workspace', e.message)
console.error(e) console.error(e)
...@@ -144,7 +144,7 @@ export const Workspace = (props: WorkspaceProps) => { ...@@ -144,7 +144,7 @@ export const Workspace = (props: WorkspaceProps) => {
handleHide: null handleHide: null
}, },
loadingLocalhost: false, loadingLocalhost: false,
toasterMsg: '', toasterMsg: ''
}) })
const toast = (message: string) => { 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