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
|
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;
|
||||||
|
|
Loading…
Reference in New Issue