From 45821ea6eef366a416f5c7dfeaa11b8711ef7aa7 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Thu, 14 May 2020 10:29:53 +0300 Subject: [PATCH] components rename --- public/locales/en/translations.json | 2 +- ...DetailsComponent.js => SessionForwardsComponent.js} | 10 +++++----- ...rComponent.js => SessionForwardsHeaderComponent.js} | 6 +++--- .../session/components/SessionListComponent.js | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) rename src/features/session/components/{SessionDetailsComponent.js => SessionForwardsComponent.js} (92%) rename src/features/session/components/{SessionDetailsHeaderComponent.js => SessionForwardsHeaderComponent.js} (84%) diff --git a/public/locales/en/translations.json b/public/locales/en/translations.json index b504422..0e4aaa2 100644 --- a/public/locales/en/translations.json +++ b/public/locales/en/translations.json @@ -30,7 +30,7 @@ "Details": { "From": "From", "To": "To", - "Options": "Option" + "Options": "Options" } } } diff --git a/src/features/session/components/SessionDetailsComponent.js b/src/features/session/components/SessionForwardsComponent.js similarity index 92% rename from src/features/session/components/SessionDetailsComponent.js rename to src/features/session/components/SessionForwardsComponent.js index 85f964c..b46011e 100644 --- a/src/features/session/components/SessionDetailsComponent.js +++ b/src/features/session/components/SessionForwardsComponent.js @@ -12,7 +12,7 @@ import Spinner from "../../../components/common/Spinner"; import DonutLargeRoundedIcon from "@material-ui/icons/DonutLargeRounded"; import IconButton from "@material-ui/core/IconButton"; import Tooltip from "@material-ui/core/Tooltip"; -import SessionDetailsHeaderComponent from "./SessionDetailsHeaderComponent"; +import SessionForwardsHeaderComponent from "./SessionForwardsHeaderComponent"; import { Grid } from "@material-ui/core"; import { useTranslation } from "react-i18next"; @@ -40,7 +40,7 @@ const useStyles = makeStyles({ } }); -const SessionDetailsComponent = ({ session, forwards }) => { +const SessionForwardsComponent = ({ session, forwards }) => { const classes = useStyles(); const { t } = useTranslation(); @@ -100,15 +100,15 @@ const SessionDetailsComponent = ({ session, forwards }) => {
- + ); }; -SessionDetailsComponent.propTypes = { +SessionForwardsComponent.propTypes = { session: PropTypes.object.isRequired, forwards: PropTypes.array }; -export default SessionDetailsComponent; +export default SessionForwardsComponent; diff --git a/src/features/session/components/SessionDetailsHeaderComponent.js b/src/features/session/components/SessionForwardsHeaderComponent.js similarity index 84% rename from src/features/session/components/SessionDetailsHeaderComponent.js rename to src/features/session/components/SessionForwardsHeaderComponent.js index 4acf751..773e984 100644 --- a/src/features/session/components/SessionDetailsHeaderComponent.js +++ b/src/features/session/components/SessionForwardsHeaderComponent.js @@ -7,7 +7,7 @@ import styles from "../styles/gridStyles"; const useStyles = makeStyles(styles); -const SessionDetailsHeaderComponent = ({ session }) => { +const SessionForwardsHeaderComponent = ({ session }) => { const classes = useStyles(); const { t } = useTranslation(); @@ -28,8 +28,8 @@ const SessionDetailsHeaderComponent = ({ session }) => { ); }; -SessionDetailsHeaderComponent.propTypes = { +SessionForwardsHeaderComponent.propTypes = { session: PropTypes.object.isRequired }; -export default SessionDetailsHeaderComponent; +export default SessionForwardsHeaderComponent; diff --git a/src/features/session/components/SessionListComponent.js b/src/features/session/components/SessionListComponent.js index 6236051..b8277e5 100644 --- a/src/features/session/components/SessionListComponent.js +++ b/src/features/session/components/SessionListComponent.js @@ -6,7 +6,7 @@ import ExpansionPanelDetails from "@material-ui/core/ExpansionPanelDetails"; import ExpandMoreIcon from "@material-ui/icons/ExpandMore"; import PropTypes from "prop-types"; import SessionSummary from "./SessionSummary"; -import SessionDetailsComponent from "./SessionDetailsComponent"; +import SessionForwardsComponent from "./SessionForwardsComponent"; import Spinner from "../../../components/common/Spinner"; import { useTranslation } from "react-i18next"; @@ -45,7 +45,7 @@ const SessionListComponent = ({ sessions, handleToggle, forwards }) => { -