diff --git a/app/src/WardrobePage.js b/app/src/WardrobePage.js index 93705f4..6bb6acd 100644 --- a/app/src/WardrobePage.js +++ b/app/src/WardrobePage.js @@ -4,9 +4,13 @@ import { Flex, Grid, Heading, + IconButton, Image, Stack, PseudoBox, + Editable, + EditablePreview, + EditableInput, } from "@chakra-ui/core"; import useOutfitState from "./useOutfitState.js"; @@ -58,18 +62,49 @@ function ItemsPanel() { const [zonesAndItems, wearItem] = useOutfitState(); return ( - - {zonesAndItems.map(({ zoneName, items, wornItemId }) => ( - - - - ))} - + <> + + + + {({ isEditing, onRequestEdit }) => ( + <> + + + {!isEditing && ( + + + + )} + + )} + + + + + {zonesAndItems.map(({ zoneName, items, wornItemId }) => ( + + + + ))} + + ); }