mirror of
https://github.com/sasjs/server.git
synced 2025-12-10 11:24:35 +00:00
chore(web): fix build warnings
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React from 'react'
|
||||
import { Route, HashRouter, Switch, Redirect } from 'react-router-dom'
|
||||
import { Route, HashRouter, Switch } from 'react-router-dom'
|
||||
import { ThemeProvider } from '@mui/material/styles'
|
||||
import { theme } from './theme'
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ import React, { useState } from 'react'
|
||||
import CssBaseline from '@mui/material/CssBaseline'
|
||||
import Box from '@mui/material/Box'
|
||||
|
||||
import Header from '../../components/header'
|
||||
import SideBar from './sideBar'
|
||||
import Main from './main'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useState, useEffect, useRef } from 'react'
|
||||
import React, { useState, useEffect } from 'react'
|
||||
import axios from 'axios'
|
||||
|
||||
import Editor from '@monaco-editor/react'
|
||||
@@ -28,7 +28,7 @@ const Main = (props: any) => {
|
||||
setFileContent(res.data.fileContent)
|
||||
})
|
||||
}
|
||||
}, [props.selectedFilePath])
|
||||
}, [props.selectedFilePath, baseUrl])
|
||||
|
||||
const handleEditSaveBtnClick = () => {
|
||||
if (!editMode) {
|
||||
|
||||
@@ -51,7 +51,7 @@ const SideBar = (props: any) => {
|
||||
})
|
||||
const queryParams = new URLSearchParams(location.search)
|
||||
props.setSelectedFilePath(queryParams.get('filePath'))
|
||||
}, [])
|
||||
}, [baseUrl, location.search, props])
|
||||
|
||||
const handleSelect = (node: TreeNode) => {
|
||||
if (!node.children.length) {
|
||||
|
||||
Reference in New Issue
Block a user