aboutsummaryrefslogtreecommitdiff
path: root/src/components/Display/ItemsDisplay.js
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-04-16 23:09:12 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-04-16 23:09:12 +0530
commitf1475f5815d2accd40342c95ed2cf97a96e6d676 (patch)
tree5ff6f63d313482a13b6d22f47cfe59b1d57fdd04 /src/components/Display/ItemsDisplay.js
parentf227adee3cff445288bdba66d369a451aa31b58e (diff)
Now the data is being pass correctly from AddNewItemForm to ItemDisplay but I need to work on processing the data
Diffstat (limited to 'src/components/Display/ItemsDisplay.js')
-rw-r--r--src/components/Display/ItemsDisplay.js15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/components/Display/ItemsDisplay.js b/src/components/Display/ItemsDisplay.js
index 5e09a5c..9507e5b 100644
--- a/src/components/Display/ItemsDisplay.js
+++ b/src/components/Display/ItemsDisplay.js
@@ -1,11 +1,22 @@
import React from "react";
import "./Display.css";
-const ItemsDisplay = () => {
+const ItemsDisplay = (props) => {
+ const items = props.items;
+
return (
<div className={"ItemsDisplay"}>
+ <ol>
+ {
+ items.map(
+ (item) => {
+ return <li key={item}>{item}</li>
+ }
+ )
+ }
+ </ol>
</div>
- )
+ );
}
export default ItemsDisplay;