Fix some eslint errors
Huh, I guess my desktop workstation doesn't have this commit hook set up. Now that I'm using my Mac again, it's catching some things I missed!
This commit is contained in:
parent
4d3b19b23b
commit
460235e7cf
4 changed files with 40 additions and 44 deletions
|
@ -14,7 +14,6 @@ import { ApolloProvider } from "@apollo/client";
|
|||
import { BrowserRouter } from "react-router-dom";
|
||||
import { css, Global } from "@emotion/react";
|
||||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
||||
import produce from "immer";
|
||||
|
||||
import apolloClient from "./apolloClient";
|
||||
|
||||
|
|
|
@ -31,7 +31,6 @@ import getVisibleLayers from "../components/getVisibleLayers";
|
|||
import { OutfitLayers } from "../components/OutfitPreview";
|
||||
import SupportOnly from "./support/SupportOnly";
|
||||
import { useAltStylesForSpecies } from "../loaders/alt-styles";
|
||||
import useSupport from "./support/useSupport";
|
||||
import { useLocalStorage } from "../util";
|
||||
|
||||
// From https://twemoji.twitter.com/, thank you!
|
||||
|
@ -81,7 +80,6 @@ function PosePicker({
|
|||
"DTIPosePickerIsInSupportMode",
|
||||
false,
|
||||
);
|
||||
const { isSupportUser } = useSupport();
|
||||
const toast = useToast();
|
||||
|
||||
const loading = posesQuery.loading || altStylesQuery.isLoading;
|
||||
|
@ -280,7 +278,8 @@ function PosePicker({
|
|||
);
|
||||
}
|
||||
|
||||
function PosePickerButton({ pose, altStyle, isOpen, loading, ...props }, ref) {
|
||||
const PosePickerButton = React.forwardRef(
|
||||
({ pose, altStyle, isOpen, loading, ...props }, ref) => {
|
||||
const theme = useTheme();
|
||||
|
||||
const icon = altStyle != null ? twemojiSunglasses : getIcon(pose);
|
||||
|
@ -345,8 +344,8 @@ function PosePickerButton({ pose, altStyle, isOpen, loading, ...props }, ref) {
|
|||
)}
|
||||
</ClassNames>
|
||||
);
|
||||
}
|
||||
PosePickerButton = React.forwardRef(PosePickerButton);
|
||||
},
|
||||
);
|
||||
|
||||
function PosePickerTable({ poseInfos, onChange, initialFocusRef }) {
|
||||
return (
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import * as React from "react";
|
||||
|
||||
import { getSupportSecret } from "../../impress-2020-config";
|
||||
|
||||
/**
|
||||
|
|
|
@ -700,7 +700,7 @@ function getZonesAndItems(itemsById, wornItemIds, closetedItemIds) {
|
|||
// used. Then, loop over them again, appending the ID number if count > 1.
|
||||
const labelCounts = new Map();
|
||||
for (const itemZoneGroup of zonesAndItems) {
|
||||
const { zoneId, zoneLabel } = itemZoneGroup;
|
||||
const { zoneLabel } = itemZoneGroup;
|
||||
|
||||
const count = labelCounts.get(zoneLabel) ?? 0;
|
||||
labelCounts.set(zoneLabel, count + 1);
|
||||
|
|
Loading…
Reference in a new issue