From 73470c9232d18c612d613dd164a76c22dab376e8 Mon Sep 17 00:00:00 2001 From: Gonzalo Pozzo Date: Thu, 25 Nov 2021 09:17:13 -0300 Subject: [PATCH] Run prettier fix on all files (#581) --- components/common/Layout/Layout.tsx | 4 +- components/common/UserNav/UserNav.tsx | 11 +- components/product/Swatch/Swatch.tsx | 2 +- components/ui/Sidebar/Sidebar.tsx | 2 +- components/ui/Text/Text.module.css | 1 - .../customer/get-logged-in-customer.ts | 51 +++++---- framework/bigcommerce/api/index.ts | 6 +- framework/bigcommerce/auth/use-login.tsx | 27 ++--- framework/bigcommerce/auth/use-logout.tsx | 24 +++-- framework/bigcommerce/auth/use-signup.tsx | 24 +++-- framework/bigcommerce/cart/use-add-item.tsx | 26 ++--- framework/bigcommerce/cart/use-cart.tsx | 34 +++--- .../bigcommerce/cart/use-remove-item.tsx | 38 ++++--- .../bigcommerce/cart/use-update-item.tsx | 64 +++++------ .../bigcommerce/customer/use-customer.tsx | 18 ++-- framework/bigcommerce/lib/normalize.ts | 6 +- framework/bigcommerce/product/use-search.tsx | 30 +++--- framework/bigcommerce/types/wishlist.ts | 3 +- .../bigcommerce/wishlist/use-add-item.tsx | 40 +++---- .../bigcommerce/wishlist/use-remove-item.tsx | 38 +++---- .../bigcommerce/wishlist/use-wishlist.tsx | 50 ++++----- framework/commerce/api/endpoints/cart.ts | 100 +++++++++--------- framework/commerce/api/endpoints/logout.ts | 46 ++++---- framework/commerce/api/endpoints/signup.ts | 48 ++++----- framework/commerce/types/customer/index.ts | 4 +- framework/commerce/types/product.ts | 11 +- framework/commerce/utils/define-property.ts | 22 ++-- .../api/endpoints/customer/address/index.ts | 5 +- .../ordercloud/api/operations/get-page.ts | 2 +- .../ordercloud/checkout/use-checkout.tsx | 2 +- .../checkout/use-submit-checkout.tsx | 4 +- framework/ordercloud/product/use-search.tsx | 31 +++--- framework/ordercloud/provider.ts | 8 +- .../ordercloud/types/customer/address.ts | 51 ++++----- framework/ordercloud/types/customer/card.ts | 18 ++-- framework/saleor/README.md | 2 +- .../saleor/api/operations/get-all-pages.ts | 15 ++- .../saleor/api/operations/get-all-products.ts | 15 ++- framework/saleor/api/operations/get-page.ts | 13 ++- .../saleor/api/operations/get-product.ts | 12 +-- .../saleor/api/operations/get-site-info.ts | 2 +- framework/saleor/api/operations/login.ts | 14 ++- framework/saleor/auth/use-signup.tsx | 2 +- framework/saleor/cart/use-remove-item.tsx | 8 +- framework/saleor/cart/use-update-item.tsx | 9 +- framework/saleor/utils/checkout-to-cart.ts | 17 ++- .../shopify/api/operations/get-all-pages.ts | 8 +- framework/shopify/auth/use-login.tsx | 29 ++--- framework/shopify/auth/use-logout.tsx | 24 +++-- framework/shopify/auth/use-signup.tsx | 24 +++-- framework/shopify/cart/use-remove-item.tsx | 38 ++++--- framework/shopify/cart/use-update-item.tsx | 70 ++++++------ framework/shopify/customer/use-customer.tsx | 18 ++-- framework/shopify/product/use-search.tsx | 32 +++--- .../swell/api/operations/get-all-pages.ts | 5 +- framework/swell/auth/use-login.tsx | 24 +++-- framework/swell/auth/use-logout.tsx | 24 +++-- framework/swell/auth/use-signup.tsx | 24 +++-- framework/swell/cart/use-add-item.tsx | 24 +++-- framework/swell/cart/use-cart.tsx | 34 +++--- framework/swell/cart/use-remove-item.tsx | 28 ++--- framework/swell/cart/use-update-item.tsx | 72 ++++++------- framework/swell/customer/use-customer.tsx | 18 ++-- framework/swell/product/use-search.tsx | 30 +++--- .../vendure/api/operations/get-all-pages.ts | 5 +- framework/vendure/auth/use-login.tsx | 24 +++-- framework/vendure/auth/use-signup.tsx | 24 +++-- framework/vendure/cart/use-add-item.tsx | 24 +++-- framework/vendure/cart/use-cart.tsx | 34 +++--- framework/vendure/cart/use-remove-item.tsx | 24 +++-- framework/vendure/cart/use-update-item.tsx | 68 ++++++------ framework/vendure/customer/use-customer.tsx | 18 ++-- framework/vendure/fetcher.ts | 2 +- framework/vendure/product/use-search.tsx | 30 +++--- 74 files changed, 899 insertions(+), 840 deletions(-) diff --git a/components/common/Layout/Layout.tsx b/components/common/Layout/Layout.tsx index dece18b670..44c4e54e1e 100644 --- a/components/common/Layout/Layout.tsx +++ b/components/common/Layout/Layout.tsx @@ -43,8 +43,8 @@ const FeatureBar = dynamic( ) const Modal = dynamic( - () => import('@components/ui/Modal'), - Object.assign(dynamicProps, {ssr: false}) + () => import('@components/ui/Modal'), + Object.assign(dynamicProps, { ssr: false }) ) interface Props { diff --git a/components/common/UserNav/UserNav.tsx b/components/common/UserNav/UserNav.tsx index a48861df7e..c6d5abdf35 100644 --- a/components/common/UserNav/UserNav.tsx +++ b/components/common/UserNav/UserNav.tsx @@ -28,9 +28,16 @@ const UserNav: FC = ({ className }) => {