diff --git a/frontend/src/components/EditItem.tsx b/frontend/src/components/EditItem.tsx index 361dfda..3c272eb 100644 --- a/frontend/src/components/EditItem.tsx +++ b/frontend/src/components/EditItem.tsx @@ -21,6 +21,7 @@ import { NumberDecrementStepper, Radio, RadioGroup, + Text, } from "@chakra-ui/react"; import React, { useState, useEffect } from "react"; import {} from "@chakra-ui/react"; @@ -154,7 +155,12 @@ const EditItem: React.FC = ({ itemId }) => { > - + {ItemData.itemName} @@ -163,7 +169,7 @@ const EditItem: React.FC = ({ itemId }) => { {isEditing ? ( <> - Item Name + Item Name setEditedName(e.target.value)} @@ -173,7 +179,7 @@ const EditItem: React.FC = ({ itemId }) => { /> - Description + Description setEditedDesc(e.target.value)} @@ -183,7 +189,7 @@ const EditItem: React.FC = ({ itemId }) => { /> - Quantity + Quantity setEditedQuant(e.target.value)} @@ -193,7 +199,7 @@ const EditItem: React.FC = ({ itemId }) => { /> - Price + Price setEditedPrice(parse(valueString)) @@ -202,6 +208,7 @@ const EditItem: React.FC = ({ itemId }) => { max={100000} > @@ -212,7 +219,7 @@ const EditItem: React.FC = ({ itemId }) => { - Visible to Others? + Visible to Others? = ({ itemId }) => { - Is this sharable? + Is this sharable? = ({ itemId }) => { ) : ( <> - Description: {ItemData.itemDesc} - Quantity: {ItemData.itemQuant} - Price (per item): {ItemData.itemPrice} + + + Description:{" "} + + {ItemData.itemDesc} + + + + Quantity:{" "} + + {ItemData.itemQuant} + + + + Price (per item):{" "} + + {ItemData.itemPrice} + {+ItemData.itemQuant > 1 && ( - {`Total price: ${+ItemData.itemPrice * +ItemData.itemQuant}`} + + {`Total price: `} + {+ItemData.itemPrice * +ItemData.itemQuant} + )} - Viewability:{" "} + + Viewability: + {" "} {ItemData.itemPub === "true" ? "Private" : "Public"} - Sharable: {ItemData.itemSharable === "true" ? "Yes" : "No"} + + Sharable: + {" "} + {ItemData.itemSharable === "true" ? "Yes" : "No"}