From c1caa618629123c539e71b8aaccb3d216c563e22 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sat, 17 Apr 2021 02:55:38 +0300 Subject: [PATCH] removed component --- .../machines/components/MachinesComponent.js | 13 ------------- .../machines/components/MachinesContainer.js | 9 ++------- 2 files changed, 2 insertions(+), 20 deletions(-) delete mode 100644 src/features/machines/components/MachinesComponent.js diff --git a/src/features/machines/components/MachinesComponent.js b/src/features/machines/components/MachinesComponent.js deleted file mode 100644 index 34b1344..0000000 --- a/src/features/machines/components/MachinesComponent.js +++ /dev/null @@ -1,13 +0,0 @@ -import React from "react"; -import PropTypes from "prop-types"; -import MachinesList from "./MachinesList"; - -const MachinesComponent = ({ network }) => { - return ; -}; - -MachinesComponent.propTypes = { - network: PropTypes.object.isRequired -}; - -export default MachinesComponent; diff --git a/src/features/machines/components/MachinesContainer.js b/src/features/machines/components/MachinesContainer.js index 64afb0d..e944182 100644 --- a/src/features/machines/components/MachinesContainer.js +++ b/src/features/machines/components/MachinesContainer.js @@ -4,7 +4,7 @@ import { ApplicationDispatchContext } from "../../../state/ApplicationContexts"; import { readMachines } from "../api"; -import MachinesComponent from "./MachinesComponent"; +import MachinesList from "./MachinesList"; const MachinesContainer = () => { const state = useContext(ApplicationStateContext); @@ -26,12 +26,7 @@ const MachinesContainer = () => { } }, [handleReadMachines, state.network.machines.loaded]); - return ( - - ); + return ; }; export default MachinesContainer;