Move getVisibleLayers to a new shared
directory
This folder will include code shared by both the client-side app and the server! The server isn't using it yet, but it will in a new API endpoint soon! I'm doing this in a separate commit to avoid lumping all the import-change noise into that commit.
This commit is contained in:
parent
3e981d82b4
commit
8f495d8302
5 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@ import { Box, VStack } from "@chakra-ui/react";
|
|||
import { WarningTwoIcon } from "@chakra-ui/icons";
|
||||
import { FaBug } from "react-icons/fa";
|
||||
import { GlitchBadgeLayout, layerUsesHTML5 } from "../components/HTML5Badge";
|
||||
import getVisibleLayers from "../components/getVisibleLayers";
|
||||
import getVisibleLayers from "../../shared/getVisibleLayers";
|
||||
|
||||
function OutfitKnownGlitchesBadge({ appearance }) {
|
||||
const glitchMessages = [];
|
||||
|
|
|
@ -19,7 +19,7 @@ import {
|
|||
import { loadable } from "../util";
|
||||
|
||||
import { petAppearanceFragment } from "../components/useOutfitAppearance";
|
||||
import getVisibleLayers from "../components/getVisibleLayers";
|
||||
import getVisibleLayers from "../../shared/getVisibleLayers";
|
||||
import { OutfitLayers } from "../components/OutfitPreview";
|
||||
import SupportOnly from "./support/SupportOnly";
|
||||
import useSupport from "./support/useSupport";
|
||||
|
|
|
@ -5,7 +5,7 @@ import gql from "graphql-tag";
|
|||
import getVisibleLayers, {
|
||||
petAppearanceFragmentForGetVisibleLayers,
|
||||
itemAppearanceFragmentForGetVisibleLayers,
|
||||
} from "./getVisibleLayers";
|
||||
} from "../../shared/getVisibleLayers";
|
||||
|
||||
function OutfitThumbnail({ petAppearance, itemAppearances, ...props }) {
|
||||
return (
|
||||
|
|
|
@ -4,7 +4,7 @@ import { useQuery } from "@apollo/client";
|
|||
import getVisibleLayers, {
|
||||
itemAppearanceFragmentForGetVisibleLayers,
|
||||
petAppearanceFragmentForGetVisibleLayers,
|
||||
} from "./getVisibleLayers";
|
||||
} from "../../shared/getVisibleLayers";
|
||||
|
||||
/**
|
||||
* useOutfitAppearance downloads the outfit's appearance data, and returns
|
||||
|
|
Loading…
Reference in a new issue