diff --git a/src/app/WardrobePage/OutfitControls.js b/src/app/WardrobePage/OutfitControls.js index 09363d7..80e8d5e 100644 --- a/src/app/WardrobePage/OutfitControls.js +++ b/src/app/WardrobePage/OutfitControls.js @@ -18,7 +18,7 @@ import { import PosePicker from "./PosePicker"; import SpeciesColorPicker from "../components/SpeciesColorPicker"; -import useOutfitAppearance from "./useOutfitAppearance"; +import useOutfitAppearance from "../components/useOutfitAppearance"; import { Link } from "react-router-dom"; /** diff --git a/src/app/WardrobePage/PosePicker.js b/src/app/WardrobePage/PosePicker.js index ab40c72..09f62ff 100644 --- a/src/app/WardrobePage/PosePicker.js +++ b/src/app/WardrobePage/PosePicker.js @@ -14,7 +14,11 @@ import { useTheme, } from "@chakra-ui/core"; -import { getVisibleLayers, petAppearanceFragment } from "./useOutfitAppearance"; +import { + getVisibleLayers, + petAppearanceFragment, +} from "../components/useOutfitAppearance"; +import { OutfitLayers } from "../components/OutfitPreview"; // From https://twemoji.twitter.com/, thank you! import twemojiSmile from "../../images/twemoji/smile.svg"; @@ -22,7 +26,6 @@ import twemojiCry from "../../images/twemoji/cry.svg"; import twemojiSick from "../../images/twemoji/sick.svg"; import twemojiMasc from "../../images/twemoji/masc.svg"; import twemojiFem from "../../images/twemoji/fem.svg"; -import { OutfitLayers } from "./OutfitPreview"; function PosePicker({ outfitState, diff --git a/src/app/WardrobePage/SearchPanel.js b/src/app/WardrobePage/SearchPanel.js index 1a2ef9e..3818468 100644 --- a/src/app/WardrobePage/SearchPanel.js +++ b/src/app/WardrobePage/SearchPanel.js @@ -5,7 +5,7 @@ import { useQuery } from "@apollo/react-hooks"; import { Delay, Heading1, useDebounce } from "../util"; import { Item, ItemListContainer, ItemListSkeleton } from "./Item"; -import { itemAppearanceFragment } from "./useOutfitAppearance"; +import { itemAppearanceFragment } from "../components/useOutfitAppearance"; /** * SearchPanel shows item search results to the user, so they can preview them diff --git a/src/app/WardrobePage/index.js b/src/app/WardrobePage/index.js index c5151eb..fd07d65 100644 --- a/src/app/WardrobePage/index.js +++ b/src/app/WardrobePage/index.js @@ -3,7 +3,7 @@ import { Box, Grid, useToast } from "@chakra-ui/core"; import loadable from "@loadable/component"; import ItemsAndSearchPanels from "./ItemsAndSearchPanels"; -import OutfitPreview from "./OutfitPreview"; +import OutfitPreview from "../components/OutfitPreview"; import useOutfitState from "./useOutfitState.js"; import { usePageTitle } from "../util"; @@ -64,7 +64,12 @@ function WardrobePage() { > - + @@ -36,7 +41,7 @@ function OutfitPreview({ outfitState }) { return ( @@ -129,7 +134,7 @@ export function OutfitLayers({ loading, visibleLayers, doAnimations = false }) { ); } -function FullScreenCenter({ children }) { +export function FullScreenCenter({ children }) { return (