Commit eaa8494c by Kristian Freeman

Track widget inventory

parent 47b6c107
......@@ -2,6 +2,7 @@ import React, { Component } from 'react';
import "./index.css"
import "./normalize.css"
import Inventory from './Inventory'
import Materials from './Materials'
import Manufacturing from './Manufacturing'
......@@ -58,6 +59,7 @@ class App extends Component {
materials={materials}
presentError={this.presentError}
/>
<Inventory widgets={widgets} />
</div>
);
}
......
import React, { Component } from 'react';
class Inventory extends Component {
render() {
return (
<div>
<h2>Inventory</h2>
<h4>{this.props.widgets.length} widgets in inventory</h4>
</div>
);
}
}
export default Inventory;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment