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 3f6a43103..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 @@ -96,14 +103,26 @@ const Item = ({
closeSidebarIfPresent()} > {item.name} - -
+ {item.options && item.options.length > 0 ? ( +
+ {item.options.map((option: ItemOption, i: number) => ( + + {option.value} + {i === item.options.length - 1 ? '' : ', '} + + ))} +
+ ) : null} +
@@ -136,4 +155,4 @@ const Item = ({ ) } -export default Item +export default CartItem diff --git a/components/common/Avatar/Avatar.tsx b/components/common/Avatar/Avatar.tsx index 6ea72abb2..351a117ec 100644 --- a/components/common/Avatar/Avatar.tsx +++ b/components/common/Avatar/Avatar.tsx @@ -1,4 +1,3 @@ -import cn from 'classnames' import { FC, useState, useMemo, useRef, useEffect } from 'react' import { getRandomPairOfColors } from '@lib/colors' diff --git a/components/common/I18nWidget/I18nWidget.module.css b/components/common/I18nWidget/I18nWidget.module.css index 07a1aeba7..b216f5706 100644 --- a/components/common/I18nWidget/I18nWidget.module.css +++ b/components/common/I18nWidget/I18nWidget.module.css @@ -29,7 +29,7 @@ } .item { - @apply flex cursor-pointer px-6 py-3 flex transition ease-in-out duration-150 text-primary leading-6 font-medium items-center; + @apply flex cursor-pointer px-6 py-3 transition ease-in-out duration-150 text-primary leading-6 font-medium items-center; text-transform: capitalize; } diff --git a/components/common/Layout/Layout.tsx b/components/common/Layout/Layout.tsx index 0490dbb19..204c3a871 100644 --- a/components/common/Layout/Layout.tsx +++ b/components/common/Layout/Layout.tsx @@ -62,16 +62,16 @@ const Layout: FC = ({ children, pageProps }) => {
{children}