From 06ec0b0b5295966502eb0472f1d94166b40d4f4f Mon Sep 17 00:00:00 2001 From: Matchu Date: Mon, 29 Mar 2021 19:46:21 -0700 Subject: [PATCH] Add disabled save UI --- package.json | 2 +- src/app/WardrobePage/ItemsPanel.js | 33 +++++++++++++++++++++++++++--- yarn.lock | 10 ++++----- 3 files changed, 35 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 6c03981..3865606 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "react": "^17.0.1", "react-autosuggest": "^10.0.2", "react-dom": "^17.0.1", - "react-icons": "^3.11.0", + "react-icons": "^4.2.0", "react-router-dom": "^5.1.2", "react-scripts": "^4.0.1", "react-transition-group": "^4.3.0", diff --git a/src/app/WardrobePage/ItemsPanel.js b/src/app/WardrobePage/ItemsPanel.js index 0cbc3da..17d72c7 100644 --- a/src/app/WardrobePage/ItemsPanel.js +++ b/src/app/WardrobePage/ItemsPanel.js @@ -15,12 +15,15 @@ import { MenuList, MenuItem, Portal, + Button, } from "@chakra-ui/react"; import { EditIcon, QuestionIcon } from "@chakra-ui/icons"; import { CSSTransition, TransitionGroup } from "react-transition-group"; import { Delay, Heading1, Heading2 } from "../util"; import Item, { ItemListContainer, ItemListSkeleton } from "./Item"; +import { BiRename } from "react-icons/bi"; +import { IoCloudUploadOutline } from "react-icons/io5"; import { MdMoreVert } from "react-icons/md"; /** @@ -261,8 +264,8 @@ function OutfitHeading({ outfitState, dispatchToOutfit }) { } > {({ onEdit }) => ( - - + + @@ -270,6 +273,25 @@ function OutfitHeading({ outfitState, dispatchToOutfit }) { + + + + + + {outfitState.id && ( + } isDisabled> + Edit a copy (Coming soon) + + )} } + icon={} onClick={() => { // Start the rename after a tick, so finishing up the click // won't just immediately remove focus from the Editable. diff --git a/yarn.lock b/yarn.lock index ebf8f60..fa91c43 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15237,12 +15237,10 @@ react-focus-lock@2.5.0: use-callback-ref "^1.2.1" use-sidecar "^1.0.1" -react-icons@^3.11.0: - version "3.11.0" - resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-3.11.0.tgz#2ca2903dfab8268ca18ebd8cc2e879921ec3b254" - integrity sha512-JRgiI/vdF6uyBgyZhVyYJUZAop95Sy4XDe/jmT3R/bKliFWpO/uZBwvSjWEdxwzec7SYbEPNPck0Kff2tUGM2Q== - dependencies: - camelcase "^5.0.0" +react-icons@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-4.2.0.tgz#6dda80c8a8f338ff96a1851424d63083282630d0" + integrity sha512-rmzEDFt+AVXRzD7zDE21gcxyBizD/3NqjbX6cmViAgdqfJ2UiLer8927/QhhrXQV7dEj/1EGuOTPp7JnLYVJKQ== react-is@^16.12.0, react-is@^16.13.1, react-is@^16.6.0, react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.4: version "16.13.1"