From 6a59fa9f025e0b91b6eb7d39ef9d9a3db83e1582 Mon Sep 17 00:00:00 2001 From: Matchu Date: Thu, 10 Aug 2023 16:31:39 -0700 Subject: [PATCH] Replace next/link with physical links All of these are links out of wardrobe-2020 now! We'll replace the router with react-router, but just for outfit state stuff. --- app/javascript/wardrobe-2020/ItemPage.js | 54 ++++++------- .../wardrobe-2020/WardrobePage/Item.js | 7 +- .../WardrobePage/OutfitControls.js | 18 ++--- .../wardrobe-2020/components/ItemCard.js | 42 +++++----- .../components/PaginationToolbar.js | 7 +- .../components/SquareItemCard.js | 76 +++++++++---------- package.json | 1 + yarn.lock | 20 +++++ 8 files changed, 111 insertions(+), 114 deletions(-) diff --git a/app/javascript/wardrobe-2020/ItemPage.js b/app/javascript/wardrobe-2020/ItemPage.js index 3a7bfc45..dd80b2e6 100644 --- a/app/javascript/wardrobe-2020/ItemPage.js +++ b/app/javascript/wardrobe-2020/ItemPage.js @@ -33,7 +33,6 @@ import { import { MdPause, MdPlayArrow } from "react-icons/md"; import gql from "graphql-tag"; import { useQuery, useMutation } from "@apollo/client"; -import Link from "next/link"; import ItemPageLayout, { SubtleSkeleton } from "./ItemPageLayout"; import { @@ -712,31 +711,30 @@ function ItemPageTradeLinks({ itemId, isEmbedded }) { function ItemPageTradeLink({ href, count, label, colorScheme, isEmbedded }) { return ( - - - + + 888 offering + + + ); } @@ -1181,11 +1179,7 @@ function CustomizeMoreButton({ speciesId, colorId, pose, itemId, isDisabled }) { function LinkOrButton({ href, ...props }) { if (href != null) { - return ( - -