From 1d3f69d32e077dc35f128c8a6adc3e7569e8593b Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Tue, 19 May 2020 11:40:49 +0300 Subject: [PATCH] liniarize imports --- src/components/common/MaterialTable.js | 3 +-- src/components/layout/Header.js | 16 +++++++++------- .../about/components/AboutComponent.js | 18 ++++++++++-------- .../about/components/TechnologiesComponent.js | 18 ++++++++++-------- .../components/ReleaseNotesListComponent.js | 8 +++++--- .../components/ReleaseNotesSummary.js | 3 +-- .../components/ActiveSessionComponent.js | 16 +++++++++------- .../server/components/ServerComponent.js | 18 ++++++++++-------- .../server/components/ServerSummary.js | 4 +--- .../components/ForwardOptionsComponent.js | 16 +++++++++------- .../session/components/ForwardOptionsDialog.js | 12 +++++++----- .../session/components/SessionListComponent.js | 8 +++++--- 12 files changed, 77 insertions(+), 63 deletions(-) diff --git a/src/components/common/MaterialTable.js b/src/components/common/MaterialTable.js index 60c6933..cb6fe67 100644 --- a/src/components/common/MaterialTable.js +++ b/src/components/common/MaterialTable.js @@ -1,5 +1,4 @@ -import TableCell from "@material-ui/core/TableCell"; -import TableRow from "@material-ui/core/TableRow"; +import { TableCell, TableRow } from "@material-ui/core"; import { withStyles } from "@material-ui/core/styles"; export const StyledTableCell = withStyles((theme) => ({ diff --git a/src/components/layout/Header.js b/src/components/layout/Header.js index fcd2911..66920ca 100644 --- a/src/components/layout/Header.js +++ b/src/components/layout/Header.js @@ -1,13 +1,15 @@ import React, { useState, useEffect } from "react"; import { makeStyles } from "@material-ui/core/styles"; -import AppBar from "@material-ui/core/AppBar"; -import Toolbar from "@material-ui/core/Toolbar"; -import Typography from "@material-ui/core/Typography"; -import IconButton from "@material-ui/core/IconButton"; import MenuIcon from "@material-ui/icons/Menu"; -import MenuItem from "@material-ui/core/MenuItem"; -import Menu from "@material-ui/core/Menu"; -import { Container } from "@material-ui/core"; +import { + Container, + Toolbar, + Menu, + MenuItem, + IconButton, + Typography, + AppBar +} from "@material-ui/core"; import { useTranslation } from "react-i18next"; import Flag from "react-flags"; import Navigation from "./Navigation"; diff --git a/src/features/about/components/AboutComponent.js b/src/features/about/components/AboutComponent.js index e5196f6..df9f7e8 100644 --- a/src/features/about/components/AboutComponent.js +++ b/src/features/about/components/AboutComponent.js @@ -1,14 +1,16 @@ import React from "react"; import { makeStyles } from "@material-ui/core/styles"; import clsx from "clsx"; -import Card from "@material-ui/core/Card"; -import CardHeader from "@material-ui/core/CardHeader"; -import CardContent from "@material-ui/core/CardContent"; -import CardActions from "@material-ui/core/CardActions"; -import Collapse from "@material-ui/core/Collapse"; -import Avatar from "@material-ui/core/Avatar"; -import IconButton from "@material-ui/core/IconButton"; -import Typography from "@material-ui/core/Typography"; +import { + Card, + CardHeader, + CardContent, + CardActions, + Collapse, + Avatar, + IconButton, + Typography +} from "@material-ui/core"; import FavoriteIcon from "@material-ui/icons/Favorite"; import ShareIcon from "@material-ui/icons/Share"; import ExpandMoreIcon from "@material-ui/icons/ExpandMore"; diff --git a/src/features/about/components/TechnologiesComponent.js b/src/features/about/components/TechnologiesComponent.js index 4411c99..a3d2ba4 100644 --- a/src/features/about/components/TechnologiesComponent.js +++ b/src/features/about/components/TechnologiesComponent.js @@ -1,14 +1,16 @@ import React from "react"; import { makeStyles } from "@material-ui/core/styles"; import clsx from "clsx"; -import Card from "@material-ui/core/Card"; -import CardHeader from "@material-ui/core/CardHeader"; -import CardContent from "@material-ui/core/CardContent"; -import CardActions from "@material-ui/core/CardActions"; -import Collapse from "@material-ui/core/Collapse"; -import Avatar from "@material-ui/core/Avatar"; -import IconButton from "@material-ui/core/IconButton"; -import Typography from "@material-ui/core/Typography"; +import { + Card, + CardHeader, + CardContent, + CardActions, + Collapse, + Avatar, + IconButton, + Typography +} from "@material-ui/core"; import FavoriteIcon from "@material-ui/icons/Favorite"; import ShareIcon from "@material-ui/icons/Share"; import ExpandMoreIcon from "@material-ui/icons/ExpandMore"; diff --git a/src/features/releaseNotes/components/ReleaseNotesListComponent.js b/src/features/releaseNotes/components/ReleaseNotesListComponent.js index 8847547..f7f85c2 100644 --- a/src/features/releaseNotes/components/ReleaseNotesListComponent.js +++ b/src/features/releaseNotes/components/ReleaseNotesListComponent.js @@ -1,8 +1,10 @@ import React from "react"; import { makeStyles } from "@material-ui/core/styles"; -import ExpansionPanel from "@material-ui/core/ExpansionPanel"; -import ExpansionPanelSummary from "@material-ui/core/ExpansionPanelSummary"; -import ExpansionPanelDetails from "@material-ui/core/ExpansionPanelDetails"; +import { + ExpansionPanel, + ExpansionPanelSummary, + ExpansionPanelDetails +} from "@material-ui/core"; import ExpandMoreIcon from "@material-ui/icons/ExpandMore"; import PropTypes from "prop-types"; import Spinner from "../../../components/common/Spinner"; diff --git a/src/features/releaseNotes/components/ReleaseNotesSummary.js b/src/features/releaseNotes/components/ReleaseNotesSummary.js index cb83a94..1e72f29 100644 --- a/src/features/releaseNotes/components/ReleaseNotesSummary.js +++ b/src/features/releaseNotes/components/ReleaseNotesSummary.js @@ -1,10 +1,9 @@ import React from "react"; import PropTypes from "prop-types"; -import { Grid } from "@material-ui/core"; +import { Grid, Typography } from "@material-ui/core"; import { makeStyles } from "@material-ui/core/styles"; import { useTranslation } from "react-i18next"; import styles from "../../../components/common/styles/gridStyles"; -import Typography from "@material-ui/core/Typography"; const useStyles = makeStyles(styles); diff --git a/src/features/server/components/ActiveSessionComponent.js b/src/features/server/components/ActiveSessionComponent.js index bdc588e..df42063 100644 --- a/src/features/server/components/ActiveSessionComponent.js +++ b/src/features/server/components/ActiveSessionComponent.js @@ -2,13 +2,15 @@ import React from "react"; import PropTypes from "prop-types"; import { makeStyles } from "@material-ui/core/styles"; import clsx from "clsx"; -import Card from "@material-ui/core/Card"; -import CardHeader from "@material-ui/core/CardHeader"; -import CardContent from "@material-ui/core/CardContent"; -import CardActions from "@material-ui/core/CardActions"; -import Collapse from "@material-ui/core/Collapse"; -import Avatar from "@material-ui/core/Avatar"; -import IconButton from "@material-ui/core/IconButton"; +import { + Card, + CardHeader, + CardContent, + CardActions, + Collapse, + Avatar, + IconButton +} from "@material-ui/core"; import ExpandMoreIcon from "@material-ui/icons/ExpandMore"; import SurroundSoundRoundedIcon from "@material-ui/icons/SurroundSoundRounded"; import ActiveSessionSummary from "./ActiveSessionSummary"; diff --git a/src/features/server/components/ServerComponent.js b/src/features/server/components/ServerComponent.js index c13906c..c45d9af 100644 --- a/src/features/server/components/ServerComponent.js +++ b/src/features/server/components/ServerComponent.js @@ -2,14 +2,16 @@ import React from "react"; import PropTypes from "prop-types"; import { makeStyles } from "@material-ui/core/styles"; import clsx from "clsx"; -import Card from "@material-ui/core/Card"; -import CardHeader from "@material-ui/core/CardHeader"; -import CardContent from "@material-ui/core/CardContent"; -import CardActions from "@material-ui/core/CardActions"; -import Collapse from "@material-ui/core/Collapse"; -import Avatar from "@material-ui/core/Avatar"; -import IconButton from "@material-ui/core/IconButton"; -import Typography from "@material-ui/core/Typography"; +import { + Card, + CardHeader, + CardContent, + CardActions, + Collapse, + Avatar, + IconButton, + Typography +} from "@material-ui/core"; import FavoriteIcon from "@material-ui/icons/Favorite"; import ShareIcon from "@material-ui/icons/Share"; import ExpandMoreIcon from "@material-ui/icons/ExpandMore"; diff --git a/src/features/server/components/ServerSummary.js b/src/features/server/components/ServerSummary.js index 54e8658..50dd682 100644 --- a/src/features/server/components/ServerSummary.js +++ b/src/features/server/components/ServerSummary.js @@ -1,10 +1,8 @@ import React from "react"; import PropTypes from "prop-types"; -import { Grid } from "@material-ui/core"; +import { Grid, Typography, Link } from "@material-ui/core"; import { makeStyles } from "@material-ui/core/styles"; import { useTranslation } from "react-i18next"; -import Typography from "@material-ui/core/Typography"; -import Link from "@material-ui/core/Link"; import styles from "../../../components/common/styles/gridStyles"; const useStyles = makeStyles(styles); diff --git a/src/features/session/components/ForwardOptionsComponent.js b/src/features/session/components/ForwardOptionsComponent.js index 780955f..5f3818e 100644 --- a/src/features/session/components/ForwardOptionsComponent.js +++ b/src/features/session/components/ForwardOptionsComponent.js @@ -1,13 +1,15 @@ import React from "react"; import PropTypes from "prop-types"; import { makeStyles } from "@material-ui/core/styles"; -import Table from "@material-ui/core/Table"; -import TableBody from "@material-ui/core/TableBody"; -import TableContainer from "@material-ui/core/TableContainer"; -import TableHead from "@material-ui/core/TableHead"; -import TableRow from "@material-ui/core/TableRow"; -import Paper from "@material-ui/core/Paper"; -import Tooltip from "@material-ui/core/Tooltip"; +import { + Table, + TableBody, + TableContainer, + TableHead, + TableRow, + Paper, + Tooltip +} from "@material-ui/core"; import { useTranslation } from "react-i18next"; import styles from "../../../components/common/styles/tableStyles"; import { diff --git a/src/features/session/components/ForwardOptionsDialog.js b/src/features/session/components/ForwardOptionsDialog.js index f82b942..2816c73 100644 --- a/src/features/session/components/ForwardOptionsDialog.js +++ b/src/features/session/components/ForwardOptionsDialog.js @@ -1,10 +1,12 @@ import React from "react"; import PropTypes from "prop-types"; -import Button from "@material-ui/core/Button"; -import Dialog from "@material-ui/core/Dialog"; -import DialogActions from "@material-ui/core/DialogActions"; -import DialogContent from "@material-ui/core/DialogContent"; -import DialogTitle from "@material-ui/core/DialogTitle"; +import { + Button, + Dialog, + DialogActions, + DialogContent, + DialogTitle +} from "@material-ui/core"; import { useTranslation } from "react-i18next"; import ForwardOptionsComponent from "./ForwardOptionsComponent"; diff --git a/src/features/session/components/SessionListComponent.js b/src/features/session/components/SessionListComponent.js index 3b4ffad..4bf8367 100644 --- a/src/features/session/components/SessionListComponent.js +++ b/src/features/session/components/SessionListComponent.js @@ -1,8 +1,10 @@ import React from "react"; import { makeStyles } from "@material-ui/core/styles"; -import ExpansionPanel from "@material-ui/core/ExpansionPanel"; -import ExpansionPanelSummary from "@material-ui/core/ExpansionPanelSummary"; -import ExpansionPanelDetails from "@material-ui/core/ExpansionPanelDetails"; +import { + ExpansionPanel, + ExpansionPanelSummary, + ExpansionPanelDetails +} from "@material-ui/core"; import ExpandMoreIcon from "@material-ui/icons/ExpandMore"; import PropTypes from "prop-types"; import SessionSummary from "./SessionSummary";