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