summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Shetye2025-06-04 16:36:49 +0530
committerSunil Shetye2025-06-04 16:36:49 +0530
commit685d9035d1619eae502a4b610d7415ccfb34c544 (patch)
treeaf5b182174cdb7224c98fd161bf3d0adf4d3893a
parent5ea32eec15286c341bf1cb7f872b44d7d7bbc0fe (diff)
downloadCommon-Interface-Project-685d9035d1619eae502a4b610d7415ccfb34c544.tar.gz
Common-Interface-Project-685d9035d1619eae502a4b610d7415ccfb34c544.tar.bz2
Common-Interface-Project-685d9035d1619eae502a4b610d7415ccfb34c544.zip
fix defined but never used error
-rw-r--r--blocks/eda-frontend/eslint.config.mjs1
-rw-r--r--blocks/eda-frontend/src/App.js2
-rw-r--r--blocks/eda-frontend/src/components/Dashboard/DashboardHome.js3
-rw-r--r--blocks/eda-frontend/src/components/Dashboard/DashboardSidebar.js4
-rw-r--r--blocks/eda-frontend/src/components/Dashboard/ProgressPanel.js2
-rw-r--r--blocks/eda-frontend/src/components/Dashboard/SchematicCard.js2
-rw-r--r--blocks/eda-frontend/src/components/Dashboard/SchematicsList.js2
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/ComponentProperties.js8
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/ComponentSidebar.js4
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/Header.js2
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/Helper/ComponentDrag.js1
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/Helper/ToolbarTools.js5
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/PropertiesSidebar.js2
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/RightSidebar.js1
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/SchematicToolbar.js4
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/SideComp.js2
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/SimulationProperties.js2
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js6
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/ToolbarExtension.js2
-rw-r--r--blocks/eda-frontend/src/components/Shared/Graph.js2
-rw-r--r--blocks/eda-frontend/src/components/Shared/Layout.js2
-rw-r--r--blocks/eda-frontend/src/components/Shared/LayoutMain.js1
-rw-r--r--blocks/eda-frontend/src/components/Shared/LayoutSidebar.js1
-rw-r--r--blocks/eda-frontend/src/components/Shared/Navbar.js2
-rw-r--r--blocks/eda-frontend/src/index.js1
-rw-r--r--blocks/eda-frontend/src/pages/Dashboard.js4
-rw-r--r--blocks/eda-frontend/src/pages/Gallery.js2
-rw-r--r--blocks/eda-frontend/src/pages/Home.js2
-rw-r--r--blocks/eda-frontend/src/pages/Login.js2
-rw-r--r--blocks/eda-frontend/src/pages/NotFound.js2
-rw-r--r--blocks/eda-frontend/src/pages/SchematicEditor.js4
-rw-r--r--blocks/eda-frontend/src/pages/signUp.js2
32 files changed, 42 insertions, 40 deletions
diff --git a/blocks/eda-frontend/eslint.config.mjs b/blocks/eda-frontend/eslint.config.mjs
index 929127b9..4895bce0 100644
--- a/blocks/eda-frontend/eslint.config.mjs
+++ b/blocks/eda-frontend/eslint.config.mjs
@@ -63,6 +63,7 @@ export default [
indent: ['error', 2],
'no-var': 'error',
'prefer-const': 'error',
+ 'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
// React/React Hooks
'react/jsx-uses-vars': 'error',
diff --git a/blocks/eda-frontend/src/App.js b/blocks/eda-frontend/src/App.js
index 79b9088a..c35427ef 100644
--- a/blocks/eda-frontend/src/App.js
+++ b/blocks/eda-frontend/src/App.js
@@ -1,4 +1,4 @@
-import React, { useEffect } from 'react'
+import { useEffect } from 'react'
import PropTypes from 'prop-types'
import { HashRouter, Switch, Route, Redirect } from 'react-router-dom'
import CircularProgress from '@material-ui/core/CircularProgress'
diff --git a/blocks/eda-frontend/src/components/Dashboard/DashboardHome.js b/blocks/eda-frontend/src/components/Dashboard/DashboardHome.js
index c4c087fb..93e245e6 100644
--- a/blocks/eda-frontend/src/components/Dashboard/DashboardHome.js
+++ b/blocks/eda-frontend/src/components/Dashboard/DashboardHome.js
@@ -1,4 +1,3 @@
-import React from 'react'
import { Button, Card, CardActions, CardContent, Grid, Typography } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
import { Link as RouterLink } from 'react-router-dom'
@@ -6,7 +5,7 @@ import { useSelector } from 'react-redux'
import ProgressPanel from './ProgressPanel'
-const useStyles = makeStyles((theme) => ({
+const useStyles = makeStyles((_theme) => ({
mainHead: {
width: '100%',
backgroundColor: '#404040',
diff --git a/blocks/eda-frontend/src/components/Dashboard/DashboardSidebar.js b/blocks/eda-frontend/src/components/Dashboard/DashboardSidebar.js
index 5940ac68..f89cf1de 100644
--- a/blocks/eda-frontend/src/components/Dashboard/DashboardSidebar.js
+++ b/blocks/eda-frontend/src/components/Dashboard/DashboardSidebar.js
@@ -1,4 +1,4 @@
-import React, { useEffect } from 'react'
+import { useEffect } from 'react'
import { Avatar, Divider, Hidden, InputBase, List, ListItem, ListItemAvatar, ListItemText, Typography } from '@material-ui/core'
import { Link as RouterLink } from 'react-router-dom'
import { makeStyles } from '@material-ui/core/styles'
@@ -37,7 +37,7 @@ const useStyles = makeStyles((theme) => ({
}))
// Vertical Navbar for user dashboard
-export default function DashSidebar (props) {
+export default function DashSidebar (_props) {
const classes = useStyles()
const user = useSelector(state => state.auth.user)
const schematics = useSelector(state => state.dashboard.schematics)
diff --git a/blocks/eda-frontend/src/components/Dashboard/ProgressPanel.js b/blocks/eda-frontend/src/components/Dashboard/ProgressPanel.js
index 06b06b4c..32880a89 100644
--- a/blocks/eda-frontend/src/components/Dashboard/ProgressPanel.js
+++ b/blocks/eda-frontend/src/components/Dashboard/ProgressPanel.js
@@ -1,4 +1,4 @@
-import React, { useEffect, useState } from 'react'
+import { useEffect, useState } from 'react'
import { Tab, Box, Tabs, AppBar, Typography, Grid } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
import PropTypes from 'prop-types'
diff --git a/blocks/eda-frontend/src/components/Dashboard/SchematicCard.js b/blocks/eda-frontend/src/components/Dashboard/SchematicCard.js
index c3700903..f07c3974 100644
--- a/blocks/eda-frontend/src/components/Dashboard/SchematicCard.js
+++ b/blocks/eda-frontend/src/components/Dashboard/SchematicCard.js
@@ -1,4 +1,4 @@
-import React, { useState } from 'react'
+import { useState } from 'react'
import PropTypes from 'prop-types'
import { Button, Card, CardActionArea, CardActions, CardContent, CardHeader, CardMedia, Snackbar, Tooltip, Typography } from '@material-ui/core'
import ShareIcon from '@material-ui/icons/Share'
diff --git a/blocks/eda-frontend/src/components/Dashboard/SchematicsList.js b/blocks/eda-frontend/src/components/Dashboard/SchematicsList.js
index 9f488502..4ee5d0d6 100644
--- a/blocks/eda-frontend/src/components/Dashboard/SchematicsList.js
+++ b/blocks/eda-frontend/src/components/Dashboard/SchematicsList.js
@@ -1,4 +1,4 @@
-import React, { useEffect } from 'react'
+import { useEffect } from 'react'
import { Button, Card, CardActions, CardContent, Grid, Typography } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
import { Link as RouterLink } from 'react-router-dom'
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/ComponentProperties.js b/blocks/eda-frontend/src/components/SchematicEditor/ComponentProperties.js
index 5c3c4839..e97fc3f6 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/ComponentProperties.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/ComponentProperties.js
@@ -1,5 +1,5 @@
/* eslint new-cap: ["error", {"newIsCapExceptionPattern": "^mx"}] */
-import React, { useEffect, useState } from 'react'
+import { useEffect, useState } from 'react'
import { useSelector, useDispatch } from 'react-redux'
import mxGraphFactory from 'mxgraph'
import { ListItem, ListItemText, Button, TextField } from '@material-ui/core'
@@ -188,6 +188,9 @@ export default function ComponentProperties () {
}
}
if (con !== '') {
+ if (con === '') {
+ con = block.controlPorts
+ }
if (con !== block.controlPorts) {
console.log('changing control ports')
adjustPorts(con, 0, con, block.controlPorts, block, 'ControlPort')
@@ -209,6 +212,9 @@ export default function ComponentProperties () {
}
}
if (com !== '') {
+ if (com === '') {
+ com = block.commandPorts
+ }
if (com !== block.commandPorts) {
console.log('changing command ports')
adjustPorts(com, 0, com, block.commandPorts, block, 'CommandPort')
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/ComponentSidebar.js b/blocks/eda-frontend/src/components/SchematicEditor/ComponentSidebar.js
index f028a649..0f857cc2 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/ComponentSidebar.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/ComponentSidebar.js
@@ -1,4 +1,4 @@
-import React, { useEffect, useRef, useState } from 'react'
+import { useEffect, useRef, useState } from 'react'
import PropTypes from 'prop-types'
import api from '../../utils/Api'
import { Collapse, Hidden, IconButton, InputAdornment, List, ListItem, ListItemIcon, TextField, Tooltip } from '@material-ui/core'
@@ -34,7 +34,7 @@ const searchOptions = {
NAME: 'name__istartswith'
}
-export default function ComponentSidebar ({ compRef }) {
+export default function ComponentSidebar ({ _compRef }) {
const classes = useStyles()
const libraries = useSelector(state => state.schematicEditor.libraries)
const collapse = useSelector(state => state.schematicEditor.collapse)
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/Header.js b/blocks/eda-frontend/src/components/SchematicEditor/Header.js
index 654a3371..5780973e 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/Header.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/Header.js
@@ -1,4 +1,4 @@
-import React, { useEffect, useRef, useState } from 'react'
+import { useEffect, useRef, useState } from 'react'
import PropTypes from 'prop-types'
import { useHistory, Link as RouterLink } from 'react-router-dom'
import {
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/Helper/ComponentDrag.js b/blocks/eda-frontend/src/components/SchematicEditor/Helper/ComponentDrag.js
index af28255b..f435ce7a 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/Helper/ComponentDrag.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/Helper/ComponentDrag.js
@@ -595,6 +595,7 @@ export default function loadGrid (container, sidebar, outline, setMainDiagramBac
try {
mxConnectionHandlerUpdateCurrentState.apply(this, arguments)
} catch (err) {
+ console.error('Error in mxConnectionHandler.updateCurrentState:', err)
}
if (this.edgeState != null) {
this.edgeState.cell.geometry.setTerminalPoint(null, false)
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/Helper/ToolbarTools.js b/blocks/eda-frontend/src/components/SchematicEditor/Helper/ToolbarTools.js
index 6715ef77..9ffa25ed 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/Helper/ToolbarTools.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/Helper/ToolbarTools.js
@@ -109,6 +109,8 @@ export function Rotate () {
// PRINT PREVIEW OF SCHEMATIC
export function PrintPreview () {
+ const title = useSelector(state => state.saveSchematic.title)
+
// Matches actual printer paper size and avoids blank pages
const scale = 0.8
const headerSize = 50
@@ -153,7 +155,6 @@ export function PrintPreview () {
header.style.lineHeight = (this.marginTop - 10) + 'px'
const footer = header.cloneNode(true)
- const title = useSelector(state => state.saveSchematic.title)
mxUtils.write(header, title + ' - ' + process.env.REACT_APP_NAME + ' on Cloud')
header.style.borderBottom = '1px solid blue'
header.style.top = '0px'
@@ -527,8 +528,6 @@ function parseXmlToGraph (xmlDoc, graph) {
const target = cellAttrs.targetVertex.value
const sourceCell = model.getCell(source)
const targetCell = model.getCell(target)
- const msgSource = (sourceCell == null) ? ' (not found)' : ''
- const msgTarget = (targetCell == null) ? ' (not found)' : ''
if (sourceCell == null || targetCell == null) {
remainingcells.push(cell)
continue
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/PropertiesSidebar.js b/blocks/eda-frontend/src/components/SchematicEditor/PropertiesSidebar.js
index 86d528a5..eadfbe20 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/PropertiesSidebar.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/PropertiesSidebar.js
@@ -1,4 +1,4 @@
-import React, { useState } from 'react'
+import { useState } from 'react'
import PropTypes from 'prop-types'
import { Hidden, List, ListItem, ListItemText, TextField, MenuItem, TextareaAutosize } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/RightSidebar.js b/blocks/eda-frontend/src/components/SchematicEditor/RightSidebar.js
index 4dfa0f69..fea06f10 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/RightSidebar.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/RightSidebar.js
@@ -1,4 +1,3 @@
-import React from 'react'
import PropTypes from 'prop-types'
import { Drawer, Hidden, IconButton } from '@material-ui/core'
import HighlightOffIcon from '@material-ui/icons/HighlightOff'
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/SchematicToolbar.js b/blocks/eda-frontend/src/components/SchematicEditor/SchematicToolbar.js
index 6b739d1c..29bfd009 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/SchematicToolbar.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/SchematicToolbar.js
@@ -1,5 +1,5 @@
/* eslint new-cap: ["error", {"newIsCapExceptionPattern": "^mx"}] */
-import React, { useEffect, useState } from 'react'
+import { useEffect, useState } from 'react'
import PropTypes from 'prop-types'
import { Canvg } from 'canvg'
import {
@@ -96,7 +96,7 @@ SimpleSnackbar.propTypes = {
message: PropTypes.string
}
-export default function SchematicToolbar ({ mobileClose, gridRef }) {
+export default function SchematicToolbar ({ _mobileClose, gridRef }) {
const classes = useStyles()
const isAuthenticated = useSelector(state => state.auth.isAuthenticated)
const description = useSelector(state => state.saveSchematic.description)
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/SideComp.js b/blocks/eda-frontend/src/components/SchematicEditor/SideComp.js
index 544b203d..3fe75e5f 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/SideComp.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/SideComp.js
@@ -1,4 +1,4 @@
-import React, { useEffect, useRef, useState } from 'react'
+import { useEffect, useRef, useState } from 'react'
import PropTypes from 'prop-types'
import { List, ListItemText, Tooltip, Popover } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/SimulationProperties.js b/blocks/eda-frontend/src/components/SchematicEditor/SimulationProperties.js
index 8461f1ce..9a01b8ab 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/SimulationProperties.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/SimulationProperties.js
@@ -1,4 +1,4 @@
-import React, { useState } from 'react'
+import { useState } from 'react'
import {
Accordion,
AccordionDetails,
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js b/blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js
index 5b1fc48e..45aef6f9 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js
@@ -1,4 +1,4 @@
-import React, { forwardRef, useCallback, useEffect, useRef, useState } from 'react'
+import { forwardRef, useCallback, useEffect, useRef, useState } from 'react'
import PropTypes from 'prop-types'
import Highcharts from 'highcharts'
import { AppBar, Button, Container, Dialog, Grid, IconButton, Paper, Slide, Toolbar, Typography } from '@material-ui/core'
@@ -505,7 +505,7 @@ export default function SimulationScreen ({ open, close }) {
// store block number for chart creation
}
- const addPointTo13 = (block, figureId, data) => {
+ const addPointTo13 = (_block, _figureId, _data) => {
// const blockUid = data[2]
// const m = data[8]
// const n = data[10]
@@ -710,7 +710,7 @@ export default function SimulationScreen ({ open, close }) {
* block
* blockId : is used to get needed div according to affichm id
*/
- function createAffichDisplaytext (displayParameter, blockId) {
+ function createAffichDisplaytext (_displayParameter, _blockId) {
// updating html data of div html for each time change according to each
// affich
// $('#affichdata-' + blockId).html(displayParameter)
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/ToolbarExtension.js b/blocks/eda-frontend/src/components/SchematicEditor/ToolbarExtension.js
index 6353ddac..f5c8ce43 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/ToolbarExtension.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/ToolbarExtension.js
@@ -1,4 +1,4 @@
-import React, { forwardRef, useState, useEffect } from 'react'
+import { forwardRef, useState, useEffect } from 'react'
import PropTypes from 'prop-types'
import {
AppBar,
diff --git a/blocks/eda-frontend/src/components/Shared/Graph.js b/blocks/eda-frontend/src/components/Shared/Graph.js
index b550524d..ae39c448 100644
--- a/blocks/eda-frontend/src/components/Shared/Graph.js
+++ b/blocks/eda-frontend/src/components/Shared/Graph.js
@@ -1,4 +1,4 @@
-import React, { Component } from 'react'
+import { Component } from 'react'
import PropTypes from 'prop-types'
import Highcharts from 'highcharts'
import HighchartsReact from 'highcharts-react-official'
diff --git a/blocks/eda-frontend/src/components/Shared/Layout.js b/blocks/eda-frontend/src/components/Shared/Layout.js
index c51e9fa1..563befc0 100644
--- a/blocks/eda-frontend/src/components/Shared/Layout.js
+++ b/blocks/eda-frontend/src/components/Shared/Layout.js
@@ -1,4 +1,4 @@
-import React, { useState } from 'react'
+import { useState } from 'react'
import PropTypes from 'prop-types'
import { AppBar, IconButton, Toolbar } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
diff --git a/blocks/eda-frontend/src/components/Shared/LayoutMain.js b/blocks/eda-frontend/src/components/Shared/LayoutMain.js
index 59aee670..5db03e97 100644
--- a/blocks/eda-frontend/src/components/Shared/LayoutMain.js
+++ b/blocks/eda-frontend/src/components/Shared/LayoutMain.js
@@ -1,4 +1,3 @@
-import React from 'react'
import PropTypes from 'prop-types'
import { makeStyles } from '@material-ui/core/styles'
diff --git a/blocks/eda-frontend/src/components/Shared/LayoutSidebar.js b/blocks/eda-frontend/src/components/Shared/LayoutSidebar.js
index 0f2c3f9e..aaf94d19 100644
--- a/blocks/eda-frontend/src/components/Shared/LayoutSidebar.js
+++ b/blocks/eda-frontend/src/components/Shared/LayoutSidebar.js
@@ -1,4 +1,3 @@
-import React from 'react'
import PropTypes from 'prop-types'
import { Drawer, Hidden, IconButton } from '@material-ui/core'
import HighlightOffIcon from '@material-ui/icons/HighlightOff'
diff --git a/blocks/eda-frontend/src/components/Shared/Navbar.js b/blocks/eda-frontend/src/components/Shared/Navbar.js
index faf0fd23..23b87053 100644
--- a/blocks/eda-frontend/src/components/Shared/Navbar.js
+++ b/blocks/eda-frontend/src/components/Shared/Navbar.js
@@ -1,4 +1,4 @@
-import React, { useState } from 'react'
+import { useState } from 'react'
import { useSelector, useDispatch } from 'react-redux'
import { AppBar, Avatar, Button, Fade, IconButton, Link, ListItemText, Menu, MenuItem, Toolbar, Typography } from '@material-ui/core'
diff --git a/blocks/eda-frontend/src/index.js b/blocks/eda-frontend/src/index.js
index fa81cbe9..eeeb3940 100644
--- a/blocks/eda-frontend/src/index.js
+++ b/blocks/eda-frontend/src/index.js
@@ -1,5 +1,4 @@
// This is the JavaScript entry point of react application.
-import React from 'react'
import ReactDOM from 'react-dom'
import * as serviceWorker from './serviceWorker'
import CssBaseline from '@material-ui/core/CssBaseline'
diff --git a/blocks/eda-frontend/src/pages/Dashboard.js b/blocks/eda-frontend/src/pages/Dashboard.js
index 2794f6c8..f50c13c1 100644
--- a/blocks/eda-frontend/src/pages/Dashboard.js
+++ b/blocks/eda-frontend/src/pages/Dashboard.js
@@ -1,5 +1,5 @@
// Main Layout for user dashboard.
-import React, { useEffect } from 'react'
+import { useEffect } from 'react'
import { Switch, Route } from 'react-router-dom'
import { CssBaseline } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
@@ -11,7 +11,7 @@ import DashboardSidebar from '../components/Dashboard/DashboardSidebar'
import DashboardHome from '../components/Dashboard/DashboardHome'
import SchematicsList from '../components/Dashboard/SchematicsList'
-const useStyles = makeStyles((theme) => ({
+const useStyles = makeStyles((_theme) => ({
root: {
display: 'flex',
minHeight: '100vh'
diff --git a/blocks/eda-frontend/src/pages/Gallery.js b/blocks/eda-frontend/src/pages/Gallery.js
index 3328029e..e9cb49a6 100644
--- a/blocks/eda-frontend/src/pages/Gallery.js
+++ b/blocks/eda-frontend/src/pages/Gallery.js
@@ -1,5 +1,5 @@
// Main layout for gallery page.
-import React, { useCallback, useEffect, useState } from 'react'
+import { useCallback, useEffect, useState } from 'react'
import PropTypes from 'prop-types'
import { Button, Card, CardActionArea, CardActions, CardContent, CardMedia, Container, CssBaseline, Grid, Typography, FormControl, InputLabel, Select, MenuItem, Input } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
diff --git a/blocks/eda-frontend/src/pages/Home.js b/blocks/eda-frontend/src/pages/Home.js
index 88a6294b..ee952809 100644
--- a/blocks/eda-frontend/src/pages/Home.js
+++ b/blocks/eda-frontend/src/pages/Home.js
@@ -1,5 +1,5 @@
// Main layout for home page.
-import React, { useEffect } from 'react'
+import { useEffect } from 'react'
import Button from '@material-ui/core/Button'
import Typography from '@material-ui/core/Typography'
diff --git a/blocks/eda-frontend/src/pages/Login.js b/blocks/eda-frontend/src/pages/Login.js
index ed1ae8c3..042490ed 100644
--- a/blocks/eda-frontend/src/pages/Login.js
+++ b/blocks/eda-frontend/src/pages/Login.js
@@ -1,5 +1,5 @@
// User Login / Sign In page.
-import React, { useEffect, useState } from 'react'
+import { useEffect, useState } from 'react'
import PropTypes from 'prop-types'
import {
diff --git a/blocks/eda-frontend/src/pages/NotFound.js b/blocks/eda-frontend/src/pages/NotFound.js
index f0f68501..faf327c5 100644
--- a/blocks/eda-frontend/src/pages/NotFound.js
+++ b/blocks/eda-frontend/src/pages/NotFound.js
@@ -1,5 +1,5 @@
// Page to display Page Not Found (i.e. 404) error.
-import React, { useEffect } from 'react'
+import { useEffect } from 'react'
import { Container, Typography } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
diff --git a/blocks/eda-frontend/src/pages/SchematicEditor.js b/blocks/eda-frontend/src/pages/SchematicEditor.js
index add7cf2f..32cedc91 100644
--- a/blocks/eda-frontend/src/pages/SchematicEditor.js
+++ b/blocks/eda-frontend/src/pages/SchematicEditor.js
@@ -1,5 +1,5 @@
// Main Layout for Schematic Editor page.
-import React, { useEffect, useRef, useState } from 'react'
+import { useEffect, useRef, useState } from 'react'
import PropTypes from 'prop-types'
import { TailSpin } from 'react-loader-spinner'
import { CssBaseline } from '@material-ui/core'
@@ -19,7 +19,7 @@ import '../components/SchematicEditor/Helper/SchematicEditor.css'
import { fetchDiagram, fetchSchematic } from '../redux/saveSchematicSlice'
import { useDispatch, useSelector } from 'react-redux'
-const useStyles = makeStyles((theme) => ({
+const useStyles = makeStyles((_theme) => ({
root: {
display: 'flex',
minHeight: '100vh'
diff --git a/blocks/eda-frontend/src/pages/signUp.js b/blocks/eda-frontend/src/pages/signUp.js
index 27014cff..cba0ebf1 100644
--- a/blocks/eda-frontend/src/pages/signUp.js
+++ b/blocks/eda-frontend/src/pages/signUp.js
@@ -1,5 +1,5 @@
// User Sign Up / Register page.
-import React, { useEffect, useState } from 'react'
+import { useEffect, useState } from 'react'
import {
Avatar,
Button,