From e2d8a86f792f02eb6a6489dd9cca9f48a86c425b Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Thu, 1 Feb 2024 06:43:14 -0800 Subject: [PATCH] Add a warning that UCs are retired now I'm keeping it in the same place for now rather than trying to fold it into Styles, because I think that's net-less-confusing (since Styles work pretty differently, e.g. different color requirements), and certainly less work either way lol! --- .../wardrobe-2020/WardrobePage/PosePicker.js | 60 ++++++++++++++++--- 1 file changed, 51 insertions(+), 9 deletions(-) diff --git a/app/javascript/wardrobe-2020/WardrobePage/PosePicker.js b/app/javascript/wardrobe-2020/WardrobePage/PosePicker.js index 2ce1651b..fdbcc287 100644 --- a/app/javascript/wardrobe-2020/WardrobePage/PosePicker.js +++ b/app/javascript/wardrobe-2020/WardrobePage/PosePicker.js @@ -23,7 +23,7 @@ import { useToast, useToken, } from "@chakra-ui/react"; -import { ChevronDownIcon } from "@chakra-ui/icons"; +import { ChevronDownIcon, WarningTwoIcon } from "@chakra-ui/icons"; import { loadable } from "../util"; import { petAppearanceFragment } from "../components/useOutfitAppearance"; @@ -422,14 +422,22 @@ function PosePickerTable({ poseInfos, onChange, initialFocusRef }) { {poseInfos.unconverted.isAvailable && ( - + marginBottom="2" + > + + + )} ); @@ -622,6 +630,40 @@ function PosePickerEmptyExplanation() { ); } +function RetiredUCWarning({ isSelected }) { + return ( + + + + + + + + "Unconverted" pets are no longer available on Neopets.com, and have been + replaced with the very similar Styles feature. We're just keeping this + as an archive! + + + ); +} + function StyleSelect({ selectedStyleId, altStyles, @@ -897,7 +939,7 @@ function getLabel(pose) { } else if (pose === "SICK_MASC" || pose === "SICK_FEM") { return "Sick"; } else if (pose === "UNCONVERTED") { - return "Classic UC"; + return "Retired UC"; } else { return "Default"; }