From 2a4060bcf36217bb36f968304ceda7a0f745cedc Mon Sep 17 00:00:00 2001 From: Nathan Kluth Date: Wed, 25 Oct 2023 15:58:04 -0600 Subject: [PATCH] mv pill --- packages/nextjs/components/ProductPage/StyleOptions.tsx | 3 +-- packages/nextjs/components/ProductSort.tsx | 2 +- packages/nextjs/pages/components.tsx | 2 +- packages/{nextjs => shared-ui}/components/Pill.tsx | 0 packages/shared-ui/index.ts | 1 + 5 files changed, 4 insertions(+), 4 deletions(-) rename packages/{nextjs => shared-ui}/components/Pill.tsx (100%) diff --git a/packages/nextjs/components/ProductPage/StyleOptions.tsx b/packages/nextjs/components/ProductPage/StyleOptions.tsx index 1c110b05..4c92158d 100644 --- a/packages/nextjs/components/ProductPage/StyleOptions.tsx +++ b/packages/nextjs/components/ProductPage/StyleOptions.tsx @@ -1,6 +1,5 @@ import * as React from "react"; -import { H6 } from "shared-ui"; -import { Pill } from "components/Pill"; +import { H6, Pill } from "shared-ui"; import { Style } from "utils/groqTypes/ProductList"; interface Props { diff --git a/packages/nextjs/components/ProductSort.tsx b/packages/nextjs/components/ProductSort.tsx index cb38a381..b6317932 100644 --- a/packages/nextjs/components/ProductSort.tsx +++ b/packages/nextjs/components/ProductSort.tsx @@ -1,7 +1,7 @@ import * as React from "react"; +import { Pill } from "shared-ui"; import { PAGE_QUERY_PARAM, SORT_OPTIONS, SORT_OPTIONS_ARRAY, SORT_QUERY_PARAM, SortType } from "utils/sorting"; import { useRouterQueryParams } from "utils/useRouterQueryParams"; -import { Pill } from "./Pill"; import { Select } from "./Select"; type ProductSortProps = { diff --git a/packages/nextjs/pages/components.tsx b/packages/nextjs/pages/components.tsx index 9053e1f5..c4746621 100644 --- a/packages/nextjs/pages/components.tsx +++ b/packages/nextjs/pages/components.tsx @@ -1,9 +1,9 @@ import { MdArrowForward } from "react-icons/md"; import { Button } from "shared-ui"; import { Input } from "shared-ui"; +import { Pill } from "shared-ui"; import { Checkbox } from "components/Checkbox"; import { LinkText } from "components/LinkText"; -import { Pill } from "components/Pill"; import { Select } from "components/Select"; export default function ComponentsPage() { diff --git a/packages/nextjs/components/Pill.tsx b/packages/shared-ui/components/Pill.tsx similarity index 100% rename from packages/nextjs/components/Pill.tsx rename to packages/shared-ui/components/Pill.tsx diff --git a/packages/shared-ui/index.ts b/packages/shared-ui/index.ts index 74f02293..af0c4db8 100644 --- a/packages/shared-ui/index.ts +++ b/packages/shared-ui/index.ts @@ -1,4 +1,5 @@ export * from "./components/Button/Button"; export * from "./components/Typography"; export * from "./components/Input"; +export * from "./components/Pill"; export * from "./components/WeDontSellBreadBanner";