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:
Emi Matchu 2021-05-13 17:35:50 -07:00
parent 3e981d82b4
commit 8f495d8302
5 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@ import { Box, VStack } from "@chakra-ui/react";
import { WarningTwoIcon } from "@chakra-ui/icons"; import { WarningTwoIcon } from "@chakra-ui/icons";
import { FaBug } from "react-icons/fa"; import { FaBug } from "react-icons/fa";
import { GlitchBadgeLayout, layerUsesHTML5 } from "../components/HTML5Badge"; import { GlitchBadgeLayout, layerUsesHTML5 } from "../components/HTML5Badge";
import getVisibleLayers from "../components/getVisibleLayers"; import getVisibleLayers from "../../shared/getVisibleLayers";
function OutfitKnownGlitchesBadge({ appearance }) { function OutfitKnownGlitchesBadge({ appearance }) {
const glitchMessages = []; const glitchMessages = [];

View file

@ -19,7 +19,7 @@ import {
import { loadable } from "../util"; import { loadable } from "../util";
import { petAppearanceFragment } from "../components/useOutfitAppearance"; import { petAppearanceFragment } from "../components/useOutfitAppearance";
import getVisibleLayers from "../components/getVisibleLayers"; import getVisibleLayers from "../../shared/getVisibleLayers";
import { OutfitLayers } from "../components/OutfitPreview"; import { OutfitLayers } from "../components/OutfitPreview";
import SupportOnly from "./support/SupportOnly"; import SupportOnly from "./support/SupportOnly";
import useSupport from "./support/useSupport"; import useSupport from "./support/useSupport";

View file

@ -5,7 +5,7 @@ import gql from "graphql-tag";
import getVisibleLayers, { import getVisibleLayers, {
petAppearanceFragmentForGetVisibleLayers, petAppearanceFragmentForGetVisibleLayers,
itemAppearanceFragmentForGetVisibleLayers, itemAppearanceFragmentForGetVisibleLayers,
} from "./getVisibleLayers"; } from "../../shared/getVisibleLayers";
function OutfitThumbnail({ petAppearance, itemAppearances, ...props }) { function OutfitThumbnail({ petAppearance, itemAppearances, ...props }) {
return ( return (

View file

@ -4,7 +4,7 @@ import { useQuery } from "@apollo/client";
import getVisibleLayers, { import getVisibleLayers, {
itemAppearanceFragmentForGetVisibleLayers, itemAppearanceFragmentForGetVisibleLayers,
petAppearanceFragmentForGetVisibleLayers, petAppearanceFragmentForGetVisibleLayers,
} from "./getVisibleLayers"; } from "../../shared/getVisibleLayers";
/** /**
* useOutfitAppearance downloads the outfit's appearance data, and returns * useOutfitAppearance downloads the outfit's appearance data, and returns