diff options
author | 2022-07-11 19:44:42 +0000 | |
---|---|---|
committer | 2022-07-11 19:44:42 +0000 | |
commit | c8ca528bba61434ddc5aad993fa9d918458db16e (patch) | |
tree | 404feed8d49eec324d56f71b25521e97b61aa2e9 /examples/with-nanostores/src/components/AddToCartForm.tsx | |
parent | faf3f3a8d111b543c0aca12432fe1a2ee5e2d726 (diff) | |
download | astro-c8ca528bba61434ddc5aad993fa9d918458db16e.tar.gz astro-c8ca528bba61434ddc5aad993fa9d918458db16e.tar.zst astro-c8ca528bba61434ddc5aad993fa9d918458db16e.zip |
[ci] format
Diffstat (limited to 'examples/with-nanostores/src/components/AddToCartForm.tsx')
-rw-r--r-- | examples/with-nanostores/src/components/AddToCartForm.tsx | 8 |
1 files changed, 2 insertions, 6 deletions
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 ( - <form onSubmit={addToCart}> - {children} - </form> - ) + return <form onSubmit={addToCart}>{children}</form>; } |