1
0
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:
Yury Shkoda
2021-10-20 16:09:16 +03:00
parent 77cb7ef50f
commit 4297285b26
4 changed files with 4 additions and 5 deletions

View File

@@ -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'

View File

@@ -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'

View File

@@ -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) {

View File

@@ -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) {