rename to ItemLayerSupportModal

the old name was clunky! this is better!
This commit is contained in:
Emi Matchu 2020-08-01 22:41:03 -07:00
parent fb51eeec5b
commit d7d7a345a0
3 changed files with 10 additions and 6 deletions

View file

@ -30,7 +30,11 @@ import useOutfitAppearance, {
} from "../../components/useOutfitAppearance";
import useSupportSecret from "./useSupportSecret";
function ItemSupportAppearanceLayerModal({
/**
* ItemLayerSupportModal offers Support info and tools for a specific item
* appearance layer. Open it by clicking a layer from ItemSupportDrawer.
*/
function ItemLayerSupportModal({
item,
itemLayer,
outfitState,
@ -166,7 +170,7 @@ function ItemSupportAppearanceLayerModal({
</MetadataValue>
</Metadata>
<Box height="8" />
<ItemSupportAppearanceLayerPetCompatibility
<ItemLayerSupportPetCompatibilityFields
item={item}
itemLayer={itemLayer}
outfitState={outfitState}
@ -201,7 +205,7 @@ function ItemSupportAppearanceLayerModal({
);
}
function ItemSupportAppearanceLayerPetCompatibility({
function ItemLayerSupportPetCompatibilityFields({
item,
itemLayer,
outfitState,
@ -342,4 +346,4 @@ function MetadataValue({ children }) {
);
}
export default ItemSupportAppearanceLayerModal;
export default ItemLayerSupportModal;

View file

@ -25,7 +25,7 @@ import {
} from "@chakra-ui/core";
import { CheckCircleIcon, EditIcon, ExternalLinkIcon } from "@chakra-ui/icons";
import ItemSupportAppearanceLayerModal from "./ItemSupportAppearanceLayerModal";
import ItemLayerSupportModal from "./ItemLayerSupportModal";
import { OutfitLayers } from "../../components/OutfitPreview";
import useOutfitAppearance from "../../components/useOutfitAppearance";
import useSupportSecret from "./useSupportSecret";
@ -315,7 +315,7 @@ function ItemSupportAppearanceLayer({
>
<EditIcon boxSize="16px" position="relative" top="-2px" right="-1px" />
</Box>
<ItemSupportAppearanceLayerModal
<ItemLayerSupportModal
item={item}
itemLayer={itemLayer}
outfitState={outfitState}