summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Shetye2022-11-15 22:51:01 +0530
committerSunil Shetye2022-11-15 22:51:01 +0530
commit3641a74b50b5790f6bc254d0322c18cd8036b6fe (patch)
treec1d263f0b415a84d6615c8fc0a9fa82cab673506
parent7aeb986915767ea756531464f2a6b57679cc324e (diff)
downloadCommon-Interface-Project-3641a74b50b5790f6bc254d0322c18cd8036b6fe.tar.gz
Common-Interface-Project-3641a74b50b5790f6bc254d0322c18cd8036b6fe.tar.bz2
Common-Interface-Project-3641a74b50b5790f6bc254d0322c18cd8036b6fe.zip
reorder import functions
-rw-r--r--blocks/eda-frontend/src/components/Dashboard/DashboardHome.js9
-rw-r--r--blocks/eda-frontend/src/components/Dashboard/DashboardSidebar.js12
-rw-r--r--blocks/eda-frontend/src/components/Dashboard/SchematicCard.js13
-rw-r--r--blocks/eda-frontend/src/components/Dashboard/SchematicsList.js9
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/ComponentSidebar.js12
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/Header.js28
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/SimulationProperties.js12
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js13
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/ToolbarExtension.js34
-rw-r--r--blocks/eda-frontend/src/components/Shared/Navbar.js6
-rw-r--r--blocks/eda-frontend/src/pages/Gallery.js13
-rw-r--r--blocks/eda-frontend/src/pages/Login.js16
-rw-r--r--blocks/eda-frontend/src/pages/signUp.js16
13 files changed, 61 insertions, 132 deletions
diff --git a/blocks/eda-frontend/src/components/Dashboard/DashboardHome.js b/blocks/eda-frontend/src/components/Dashboard/DashboardHome.js
index a77d8ff2..fb1c78e5 100644
--- a/blocks/eda-frontend/src/components/Dashboard/DashboardHome.js
+++ b/blocks/eda-frontend/src/components/Dashboard/DashboardHome.js
@@ -1,12 +1,5 @@
import React from 'react'
-import {
- Card,
- Grid,
- Button,
- Typography,
- CardActions,
- CardContent
-} from '@material-ui/core'
+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'
import { useSelector } from 'react-redux'
diff --git a/blocks/eda-frontend/src/components/Dashboard/DashboardSidebar.js b/blocks/eda-frontend/src/components/Dashboard/DashboardSidebar.js
index 157cc257..bf6fb586 100644
--- a/blocks/eda-frontend/src/components/Dashboard/DashboardSidebar.js
+++ b/blocks/eda-frontend/src/components/Dashboard/DashboardSidebar.js
@@ -1,15 +1,5 @@
import React from 'react'
-import {
- Hidden,
- Divider,
- Avatar,
- List,
- Typography,
- ListItem,
- InputBase,
- ListItemText,
- ListItemAvatar
-} from '@material-ui/core'
+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'
import { deepPurple } from '@material-ui/core/colors'
diff --git a/blocks/eda-frontend/src/components/Dashboard/SchematicCard.js b/blocks/eda-frontend/src/components/Dashboard/SchematicCard.js
index ce073f75..3d7b5e22 100644
--- a/blocks/eda-frontend/src/components/Dashboard/SchematicCard.js
+++ b/blocks/eda-frontend/src/components/Dashboard/SchematicCard.js
@@ -1,17 +1,6 @@
import React from 'react'
import PropTypes from 'prop-types'
-import {
- Button,
- Typography,
- Card,
- CardActionArea,
- CardActions,
- CardContent,
- CardMedia,
- CardHeader,
- Tooltip,
- Snackbar
-} from '@material-ui/core'
+import { Button, Card, CardActionArea, CardActions, CardContent, CardHeader, CardMedia, Snackbar, Tooltip, Typography } from '@material-ui/core'
import ShareIcon from '@material-ui/icons/Share'
import { makeStyles } from '@material-ui/core/styles'
import { Link as RouterLink } from 'react-router-dom'
diff --git a/blocks/eda-frontend/src/components/Dashboard/SchematicsList.js b/blocks/eda-frontend/src/components/Dashboard/SchematicsList.js
index 6e480165..f3b1e7d5 100644
--- a/blocks/eda-frontend/src/components/Dashboard/SchematicsList.js
+++ b/blocks/eda-frontend/src/components/Dashboard/SchematicsList.js
@@ -1,12 +1,5 @@
import React from 'react'
-import {
- Card,
- Grid,
- Button,
- Typography,
- CardActions,
- CardContent
-} from '@material-ui/core'
+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/ComponentSidebar.js b/blocks/eda-frontend/src/components/SchematicEditor/ComponentSidebar.js
index 88da0abe..3266b5f4 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/ComponentSidebar.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/ComponentSidebar.js
@@ -1,17 +1,7 @@
import React, { useEffect, useState } from 'react'
import PropTypes from 'prop-types'
import api from '../../utils/Api'
-import {
- Hidden,
- List,
- ListItem,
- Collapse,
- ListItemIcon,
- IconButton,
- Tooltip,
- TextField,
- InputAdornment
-} from '@material-ui/core'
+import { Collapse, Hidden, IconButton, InputAdornment, List, ListItem, ListItemIcon, TextField, Tooltip } from '@material-ui/core'
import Loader from 'react-loader-spinner'
import SearchIcon from '@material-ui/icons/Search'
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/Header.js b/blocks/eda-frontend/src/components/SchematicEditor/Header.js
index b2b12588..a2e14840 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/Header.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/Header.js
@@ -2,26 +2,26 @@ import React, { useEffect } from 'react'
import PropTypes from 'prop-types'
import { useHistory, Link as RouterLink } from 'react-router-dom'
import {
- Toolbar,
- Typography,
- IconButton,
- Button,
- Input,
- Hidden,
- Link,
Avatar,
- Menu,
- Fade,
- MenuItem,
- ListItemText,
+ Button,
Dialog,
- DialogTitle,
- DialogContent,
DialogActions,
+ DialogContent,
DialogContentText,
+ DialogTitle,
+ Fade,
FormControlLabel,
+ Hidden,
+ IconButton,
+ Input,
+ Link,
+ ListItemText,
+ Menu,
+ MenuItem,
+ Snackbar,
Switch,
- Snackbar
+ Toolbar,
+ Typography
} from '@material-ui/core'
import { useSelector, useDispatch } from 'react-redux'
import ShareIcon from '@material-ui/icons/Share'
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/SimulationProperties.js b/blocks/eda-frontend/src/components/SchematicEditor/SimulationProperties.js
index fb205ea4..71822587 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/SimulationProperties.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/SimulationProperties.js
@@ -1,14 +1,14 @@
import React, { useState } from 'react'
import {
- List,
- ListItem,
+ Accordion,
+ AccordionDetails,
+ AccordionSummary,
Button,
- TextField,
InputAdornment,
+ List,
+ ListItem,
MenuItem,
- Accordion,
- AccordionSummary,
- AccordionDetails,
+ TextField,
Typography
} from '@material-ui/core'
import ExpandMoreIcon from '@material-ui/icons/ExpandMore'
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js b/blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js
index 36c2f10c..e1d91d3f 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js
@@ -1,18 +1,7 @@
import React, { useState, useEffect, useRef, useCallback } 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'
+import { AppBar, Button, Container, Dialog, Grid, IconButton, Paper, Slide, Toolbar, Typography } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
import CloseIcon from '@material-ui/icons/Close'
import { useSelector, useDispatch } from 'react-redux'
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/ToolbarExtension.js b/blocks/eda-frontend/src/components/SchematicEditor/ToolbarExtension.js
index 4be2aa9d..e8ecb17f 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/ToolbarExtension.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/ToolbarExtension.js
@@ -1,34 +1,34 @@
import React from 'react'
import PropTypes from 'prop-types'
import {
- Slide,
+ AppBar,
+ Avatar,
Button,
+ Container,
Dialog,
DialogActions,
DialogContent,
DialogContentText,
DialogTitle,
- TextareaAutosize,
- AppBar,
- Toolbar,
- IconButton,
- Typography,
- Container,
+ Divider,
Grid,
+ IconButton,
+ List,
+ ListItem,
+ ListItemAvatar,
+ ListItemText,
Paper,
- Divider,
- TableContainer,
+ Slide,
Table,
+ TableBody,
+ TableCell,
+ TableContainer,
TableHead,
TableRow,
- TableCell,
- TableBody,
- List,
- ListItem,
- ListItemText,
- Avatar,
- ListItemAvatar,
- Tooltip
+ TextareaAutosize,
+ Toolbar,
+ Tooltip,
+ Typography
} from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
diff --git a/blocks/eda-frontend/src/components/Shared/Navbar.js b/blocks/eda-frontend/src/components/Shared/Navbar.js
index 7afce022..50a1edbe 100644
--- a/blocks/eda-frontend/src/components/Shared/Navbar.js
+++ b/blocks/eda-frontend/src/components/Shared/Navbar.js
@@ -1,10 +1,6 @@
import React from 'react'
-import {
- AppBar, Button, Toolbar, Typography, Link, IconButton, Avatar, Menu, ListItemText,
- Fade,
- MenuItem
-} from '@material-ui/core'
+import { AppBar, Avatar, Button, Fade, IconButton, Link, ListItemText, Menu, MenuItem, Toolbar, Typography } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
import { deepPurple } from '@material-ui/core/colors'
import { Link as RouterLink, useHistory } from 'react-router-dom'
diff --git a/blocks/eda-frontend/src/pages/Gallery.js b/blocks/eda-frontend/src/pages/Gallery.js
index d0927269..994251c3 100644
--- a/blocks/eda-frontend/src/pages/Gallery.js
+++ b/blocks/eda-frontend/src/pages/Gallery.js
@@ -1,18 +1,7 @@
// Main layout for gallery page.
import React from 'react'
import PropTypes from 'prop-types'
-import {
- Card,
- Grid,
- Button,
- Typography,
- CardActions,
- CardContent,
- Container,
- CssBaseline,
- CardActionArea,
- CardMedia
-} from '@material-ui/core'
+import { Button, Card, CardActionArea, CardActions, CardContent, CardMedia, Container, CssBaseline, Grid, Typography } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
import { Link as RouterLink } from 'react-router-dom'
import GallerySchSample from '../utils/GallerySchSample'
diff --git a/blocks/eda-frontend/src/pages/Login.js b/blocks/eda-frontend/src/pages/Login.js
index f3e3bb4e..600b641d 100644
--- a/blocks/eda-frontend/src/pages/Login.js
+++ b/blocks/eda-frontend/src/pages/Login.js
@@ -3,18 +3,18 @@ import React, { useState } from 'react'
import PropTypes from 'prop-types'
import {
- Container,
- Grid,
+ Avatar,
Button,
- Typography,
- Link,
+ Card,
Checkbox,
+ Container,
FormControlLabel,
- TextField,
- Card,
- Avatar,
+ Grid,
+ IconButton,
InputAdornment,
- IconButton
+ Link,
+ TextField,
+ Typography
} from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
import LockOutlinedIcon from '@material-ui/icons/LockOutlined'
diff --git a/blocks/eda-frontend/src/pages/signUp.js b/blocks/eda-frontend/src/pages/signUp.js
index 0bb85365..62cec1cd 100644
--- a/blocks/eda-frontend/src/pages/signUp.js
+++ b/blocks/eda-frontend/src/pages/signUp.js
@@ -1,18 +1,18 @@
// User Sign Up / Register page.
import React, { useState } from 'react'
import {
- Container,
- Grid,
+ Avatar,
Button,
- Typography,
- Link,
+ Card,
Checkbox,
+ Container,
FormControlLabel,
- TextField,
- Card,
- Avatar,
+ Grid,
+ IconButton,
InputAdornment,
- IconButton
+ Link,
+ TextField,
+ Typography
} from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
import LockOutlinedIcon from '@material-ui/icons/LockOutlined'