diff --git a/README.md b/README.md index fbbbbf26b..8be54816a 100644 --- a/README.md +++ b/README.md @@ -90,8 +90,8 @@ Our commitment to Open Source can be found [here](https://vercel.com/oss). 5. Duplicate `.env.template` and rename it to `.env.local`. 6. Add proper store values to `.env.local`. 7. Run `yarn dev` to build and watch for code changes -8. The development branch is `development` (this is the branch pull requests should be made against). - On a release, `develop` branch is rebased into `master`. +8. The development branch is `canary` (this is the branch pull requests should be made against). + On a release, `canary` branch is rebased into `master`. ## Framework diff --git a/assets/base.css b/assets/base.css index 781ebe0ac..f854065ba 100644 --- a/assets/base.css +++ b/assets/base.css @@ -102,8 +102,6 @@ a { } .animated { - -webkit-animation-duration: 1s; - animation-duration: 1s; -webkit-animation-duration: 1s; animation-duration: 1s; -webkit-animation-fill-mode: both; diff --git a/components/cart/CartItem/CartItem.tsx b/components/cart/CartItem/CartItem.tsx index 1e9062e91..87fb86d0b 100644 --- a/components/cart/CartItem/CartItem.tsx +++ b/components/cart/CartItem/CartItem.tsx @@ -10,7 +10,14 @@ import usePrice from '@framework/product/use-price' import useUpdateItem from '@framework/cart/use-update-item' import useRemoveItem from '@framework/cart/use-remove-item' -const Item = ({ +type ItemOption = { + name: string + nameId: number + value: string + valueId: number +} + +const CartItem = ({ item, currencyCode, ...rest @@ -63,7 +70,7 @@ const Item = ({ try { // If this action succeeds then there's no need to do `setRemoving(true)` // because the component will be removed from the view - await removeItem({ id: String(item.id) }) + await removeItem(item) } catch (error) { setRemoving(false) } @@ -96,14 +103,26 @@ const Item = ({