removed component

master
Tudor Stanciu 2021-04-17 02:55:38 +03:00
parent c129b4c0e4
commit c1caa61862
2 changed files with 2 additions and 20 deletions

View File

@ -1,13 +0,0 @@
import React from "react";
import PropTypes from "prop-types";
import MachinesList from "./MachinesList";
const MachinesComponent = ({ network }) => {
return <MachinesList dense={true} machines={network.machines} />;
};
MachinesComponent.propTypes = {
network: PropTypes.object.isRequired
};
export default MachinesComponent;

View File

@ -4,7 +4,7 @@ import {
ApplicationDispatchContext ApplicationDispatchContext
} from "../../../state/ApplicationContexts"; } from "../../../state/ApplicationContexts";
import { readMachines } from "../api"; import { readMachines } from "../api";
import MachinesComponent from "./MachinesComponent"; import MachinesList from "./MachinesList";
const MachinesContainer = () => { const MachinesContainer = () => {
const state = useContext(ApplicationStateContext); const state = useContext(ApplicationStateContext);
@ -26,12 +26,7 @@ const MachinesContainer = () => {
} }
}, [handleReadMachines, state.network.machines.loaded]); }, [handleReadMachines, state.network.machines.loaded]);
return ( return <MachinesList dense={true} machines={state.network.machines} />;
<MachinesComponent
network={state.network}
onPropertyChange={handleChange}
/>
);
}; };
export default MachinesContainer; export default MachinesContainer;