From 41c05838e77df446dc9c2251038822b782332191 Mon Sep 17 00:00:00 2001 From: Sol Irvine Date: Thu, 24 Aug 2023 01:54:31 -0700 Subject: [PATCH] linting --- app/[locale]/about/about-narai-detail.tsx | 4 ++-- app/[locale]/bar/sagyobar-detail.tsx | 4 ++-- app/[locale]/concept/concept-detail.tsx | 4 ++-- app/[locale]/privacy/privacy-policy.tsx | 4 ++-- app/[locale]/terms/terms-of-use.tsx | 1 - components/cart/delete-item-button.tsx | 2 +- components/cart/modal.tsx | 8 ++++---- components/cart/open-cart.tsx | 2 +- components/grid/tile.tsx | 4 ++-- components/label.tsx | 2 +- components/layout/menu/modal.tsx | 4 ++-- components/layout/navbar/mobile-menu.tsx | 2 +- components/layout/navbar/search.tsx | 2 +- components/layout/newsletter-footer.tsx | 2 +- components/layout/newsletter-signup.tsx | 2 +- components/product/age-gate-form.tsx | 6 ++---- 16 files changed, 25 insertions(+), 28 deletions(-) diff --git a/app/[locale]/about/about-narai-detail.tsx b/app/[locale]/about/about-narai-detail.tsx index 32aea08bd..4efd5936a 100644 --- a/app/[locale]/about/about-narai-detail.tsx +++ b/app/[locale]/about/about-narai-detail.tsx @@ -21,7 +21,7 @@ export default function AboutNaraiDetail({ awards }: { awards: string }) {

{t('about.001.subtitle')}

-
+
{t('about.002.para002')}

-
+
-
+
-
+
-
+
- +
diff --git a/app/[locale]/privacy/privacy-policy.tsx b/app/[locale]/privacy/privacy-policy.tsx index efcb5828f..26d3caa2e 100644 --- a/app/[locale]/privacy/privacy-policy.tsx +++ b/app/[locale]/privacy/privacy-policy.tsx @@ -7,11 +7,11 @@ export default function PrivacyPolicy() { return ( <>
-
+
{t('privacy.title')}
-
{t('privacy.lastModifiedDate')}
+
{t('privacy.lastModifiedDate')}

{t('privacy.pleaseRead')}

{t('privacy.usedFor')}

diff --git a/app/[locale]/terms/terms-of-use.tsx b/app/[locale]/terms/terms-of-use.tsx index 05c2b5a36..cce017536 100644 --- a/app/[locale]/terms/terms-of-use.tsx +++ b/app/[locale]/terms/terms-of-use.tsx @@ -127,7 +127,6 @@ export default function TermsOfUse() { {t('terms.contactUs.instructions')} {t('email-address.support')} diff --git a/components/cart/delete-item-button.tsx b/components/cart/delete-item-button.tsx index 605adcf51..43a970505 100644 --- a/components/cart/delete-item-button.tsx +++ b/components/cart/delete-item-button.tsx @@ -37,7 +37,7 @@ export default function DeleteItemButton({ item }: { item: CartItem }) { {isPending ? ( ) : ( - + )} ); diff --git a/components/cart/modal.tsx b/components/cart/modal.tsx index 43e12bd3e..e60d01b3f 100644 --- a/components/cart/modal.tsx +++ b/components/cart/modal.tsx @@ -67,7 +67,7 @@ export default function CartModal({ cart }: { cart: Cart | undefined }) { leaveFrom="translate-x-0" leaveTo="translate-x-full" > - +

Cart

@@ -83,7 +83,7 @@ export default function CartModal({ cart }: { cart: Cart | undefined }) {
) : (
-
    +
      {cart.lines.map((item, i) => { const merchandiseSearchParams = {} as MerchandiseSearchParams; @@ -159,11 +159,11 @@ export default function CartModal({ cart }: { cart: Cart | undefined }) { currencyCode={cart.cost.totalTaxAmount.currencyCode} />
-
+

Shipping

Calculated at checkout

-
+

Total

{quantity ? ( -
+
{quantity}
) : null} diff --git a/components/grid/tile.tsx b/components/grid/tile.tsx index 4729255bc..eb47fc915 100644 --- a/components/grid/tile.tsx +++ b/components/grid/tile.tsx @@ -3,8 +3,8 @@ import Image from 'next/image'; export function GridTileImage({ isInteractive = true, - active, - label, + active: _active, + label: _label, ...props }: { isInteractive?: boolean; diff --git a/components/label.tsx b/components/label.tsx index 1f9e82bdf..fa43baff6 100644 --- a/components/label.tsx +++ b/components/label.tsx @@ -15,7 +15,7 @@ const Label = ({ return (
-

+

{title}

diff --git a/components/layout/menu/modal.tsx b/components/layout/menu/modal.tsx index 7a67ce001..4ef3e2798 100644 --- a/components/layout/menu/modal.tsx +++ b/components/layout/menu/modal.tsx @@ -13,8 +13,8 @@ import { LanguageControl, SupportedLocale } from '../navbar/language-control'; export function MenuModal({ scrolled }: { scrolled: boolean }) { const t = useTranslations('Index'); const locale = useLocale(); - let [isOpen, setIsOpen] = useState(false); - let closeButtonRef = useRef(null); + const [isOpen, setIsOpen] = useState(false); + const closeButtonRef = useRef(null); const close = () => { setIsOpen(false); diff --git a/components/layout/navbar/mobile-menu.tsx b/components/layout/navbar/mobile-menu.tsx index 6d798370e..6782b064c 100644 --- a/components/layout/navbar/mobile-menu.tsx +++ b/components/layout/navbar/mobile-menu.tsx @@ -61,7 +61,7 @@ export default function MobileMenu({ menu }: { menu: Menu[] }) { leaveFrom="translate-x-0" leaveTo="translate-x-[-100%]" > - +