From c8ca528bba61434ddc5aad993fa9d918458db16e Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Mon, 11 Jul 2022 19:44:42 +0000 Subject: [PATCH] [ci] format --- examples/with-nanostores/src/cartStore.ts | 2 +- examples/with-nanostores/src/components/AddToCartForm.tsx | 8 ++------ examples/with-nanostores/src/components/CartFlyout.tsx | 6 ++++-- .../with-nanostores/src/components/CartFlyoutToggle.tsx | 5 +---- 4 files changed, 8 insertions(+), 13 deletions(-) diff --git a/examples/with-nanostores/src/cartStore.ts b/examples/with-nanostores/src/cartStore.ts index 21543a73e..f490a2447 100644 --- a/examples/with-nanostores/src/cartStore.ts +++ b/examples/with-nanostores/src/cartStore.ts @@ -7,7 +7,7 @@ export type CartItem = { name: string; imageSrc: string; quantity: number; -} +}; export type CartItemDisplayInfo = Pick; diff --git a/examples/with-nanostores/src/components/AddToCartForm.tsx b/examples/with-nanostores/src/components/AddToCartForm.tsx index 2f1befb9f..7498443f6 100644 --- a/examples/with-nanostores/src/components/AddToCartForm.tsx +++ b/examples/with-nanostores/src/components/AddToCartForm.tsx @@ -5,7 +5,7 @@ import type { ComponentChildren } from 'preact'; type Props = { item: CartItemDisplayInfo; children: ComponentChildren; -} +}; export default function AddToCartForm({ item, children }: Props) { function addToCart(e: SubmitEvent) { @@ -14,9 +14,5 @@ export default function AddToCartForm({ item, children }: Props) { addCartItem(item); } - return ( -
- {children} -
- ) + return
{children}
; } diff --git a/examples/with-nanostores/src/components/CartFlyout.tsx b/examples/with-nanostores/src/components/CartFlyout.tsx index 29fd7a882..98fd8cbfb 100644 --- a/examples/with-nanostores/src/components/CartFlyout.tsx +++ b/examples/with-nanostores/src/components/CartFlyout.tsx @@ -10,7 +10,7 @@ export default function CartFlyout() { ); } diff --git a/examples/with-nanostores/src/components/CartFlyoutToggle.tsx b/examples/with-nanostores/src/components/CartFlyoutToggle.tsx index 9c94bc831..14ce1c70d 100644 --- a/examples/with-nanostores/src/components/CartFlyoutToggle.tsx +++ b/examples/with-nanostores/src/components/CartFlyoutToggle.tsx @@ -1,10 +1,7 @@ import { useStore } from '@nanostores/preact'; import { isCartOpen } from '../cartStore'; - export default function CartFlyoutToggle() { const $isCartOpen = useStore(isCartOpen); - return ( - - ) + return ; }