4
0
forked from crowetic/commerce
This commit is contained in:
okbel 2021-01-29 11:22:41 -03:00
parent 2ffe1ab71b
commit b8a0bb5a21
4 changed files with 14 additions and 14 deletions

View File

@ -1,4 +1,5 @@
## Changelog ## Changelog
- Select Variants Working - Select Variants Fully Working
- Click on cart item title, closes the sidebar - Click on the Cart Item Title, closes the sidebar.

View File

@ -4,9 +4,8 @@ import { NextSeo } from 'next-seo'
import { FC, useState } from 'react' import { FC, useState } from 'react'
import s from './ProductView.module.css' import s from './ProductView.module.css'
import { useUI } from '@components/ui'
import { Swatch, ProductSlider } from '@components/product' import { Swatch, ProductSlider } from '@components/product'
import { Button, Container, Text } from '@components/ui' import { Button, Container, Text, useUI} from '@components/ui'
import usePrice from '@framework/product/use-price' import usePrice from '@framework/product/use-price'
import { useAddItem } from '@framework/cart' import { useAddItem } from '@framework/cart'
@ -100,8 +99,8 @@ const ProductView: FC<Props> = ({ product }) => {
))} ))}
</ProductSlider> </ProductSlider>
</div> </div>
</div>
</div>
<div className={s.sidebar}> <div className={s.sidebar}>
<section> <section>
{product.options?.map((opt) => ( {product.options?.map((opt) => (

View File

@ -1,12 +1,12 @@
import React, { FC, useState } from 'react' import React, { FC, useState } from 'react'
import cn from 'classnames' import cn from 'classnames'
import { Heart } from '@components/icons'
import { useUI } from '@components/ui' import { useUI } from '@components/ui'
import useCustomer from '@framework/customer/use-customer' import { Heart } from '@components/icons'
import useAddItem from '@framework/wishlist/use-add-item' import useAddItem from '@framework/wishlist/use-add-item'
import useWishlist from '@framework/wishlist/use-wishlist'
import useCustomer from '@framework/customer/use-customer'
import useRemoveItem from '@framework/wishlist/use-remove-item' import useRemoveItem from '@framework/wishlist/use-remove-item'
import useWishlist from '@framework/wishlist/use-add-item'
type Props = { type Props = {
productId: Product['id'] productId: Product['id']

View File

@ -16,16 +16,16 @@
"jsx": "preserve", "jsx": "preserve",
"paths": { "paths": {
"@lib/*": ["lib/*"], "@lib/*": ["lib/*"],
"@assets/*": ["assets/*"],
"@config/*": ["config/*"],
"@components/*": ["components/*"],
"@utils/*": ["utils/*"], "@utils/*": ["utils/*"],
"@commerce/*": ["framework/commerce/*"], "@config/*": ["config/*"],
"@assets/*": ["assets/*"],
"@components/*": ["components/*"],
"@commerce": ["framework/commerce"], "@commerce": ["framework/commerce"],
"@framework/*": ["framework/bigcommerce/*"], "@commerce/*": ["framework/commerce/*"],
"@framework": ["framework/bigcommerce"] "@framework": ["framework/bigcommerce"]
"@framework/*": ["framework/bigcommerce/*"],
} }
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.js"], "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.js"],
"exclude": ["node_modules", "components/wishlist"] "exclude": ["node_modules"]
} }