diff --git a/src/app/WardrobePage/support/ItemLayerSupportModal.js b/src/app/WardrobePage/support/ItemLayerSupportModal.js index bc0147b..b608209 100644 --- a/src/app/WardrobePage/support/ItemLayerSupportModal.js +++ b/src/app/WardrobePage/support/ItemLayerSupportModal.js @@ -24,6 +24,7 @@ import { import { ChevronRightIcon, ExternalLinkIcon } from "@chakra-ui/icons"; import ItemLayerSupportUploadModal from "./ItemLayerSupportUploadModal"; +import Metadata, { MetadataLabel, MetadataValue } from "./Metadata"; import { OutfitLayers } from "../../components/OutfitPreview"; import SpeciesColorPicker from "../../components/SpeciesColorPicker"; import useOutfitAppearance, { @@ -341,34 +342,4 @@ function ItemLayerSupportPetCompatibilityFields({ ); } -function Metadata({ children }) { - return ( - - {children} - - ); -} - -function MetadataLabel({ children }) { - return ( - - {children} - - ); -} - -function MetadataValue({ children }) { - return ( - - {children} - - ); -} - export default ItemLayerSupportModal; diff --git a/src/app/WardrobePage/support/ItemSupportDrawer.js b/src/app/WardrobePage/support/ItemSupportDrawer.js index 55bc806..243d18f 100644 --- a/src/app/WardrobePage/support/ItemSupportDrawer.js +++ b/src/app/WardrobePage/support/ItemSupportDrawer.js @@ -27,6 +27,7 @@ import { import { CheckCircleIcon, EditIcon, ExternalLinkIcon } from "@chakra-ui/icons"; import ItemLayerSupportModal from "./ItemLayerSupportModal"; +import Metadata, { MetadataLabel, MetadataValue } from "./Metadata"; import { OutfitLayers } from "../../components/OutfitPreview"; import useOutfitAppearance from "../../components/useOutfitAppearance"; import { OutfitStateContext } from "../useOutfitState"; @@ -73,13 +74,15 @@ function ItemSupportDrawer({ item, isOpen, onClose }) { Support - - - - - - - + + + DTI ID: + {item.id} + + + + + diff --git a/src/app/WardrobePage/support/Metadata.js b/src/app/WardrobePage/support/Metadata.js new file mode 100644 index 0000000..9063ed2 --- /dev/null +++ b/src/app/WardrobePage/support/Metadata.js @@ -0,0 +1,39 @@ +import * as React from "react"; +import { Box } from "@chakra-ui/core"; + +/** + * Metadata is a UI component for showing metadata about something, as labels + * and their values. + */ +function Metadata({ children }) { + return ( + + {children} + + ); +} + +function MetadataLabel({ children }) { + return ( + + {children} + + ); +} + +function MetadataValue({ children }) { + return ( + + {children} + + ); +} + +export default Metadata; +export { MetadataLabel, MetadataValue };