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/CartFlyout.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/CartFlyout.tsx')
-rw-r--r-- | examples/with-nanostores/src/components/CartFlyout.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
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() { <aside hidden={!$isCartOpen} className={styles.container}> {Object.values($cartItems).length ? ( <ul className={styles.list} role="list"> - {Object.values($cartItems).map(cartItem => ( + {Object.values($cartItems).map((cartItem) => ( <li className={styles.listItem}> <img className={styles.listItemImg} src={cartItem.imageSrc} alt={cartItem.name} /> <div> @@ -20,7 +20,9 @@ export default function CartFlyout() { </li> ))} </ul> - ) : <p>Your cart is empty!</p>} + ) : ( + <p>Your cart is empty!</p> + )} </aside> ); } |