removed component
parent
c129b4c0e4
commit
c1caa61862
|
@ -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;
|
|
@ -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 (
|
||||
<MachinesComponent
|
||||
network={state.network}
|
||||
onPropertyChange={handleChange}
|
||||
/>
|
||||
);
|
||||
return <MachinesList dense={true} machines={state.network.machines} />;
|
||||
};
|
||||
|
||||
export default MachinesContainer;
|
||||
|
|
Loading…
Reference in New Issue