This commit is contained in:
okbel 2021-01-29 11:53:49 -03:00
parent 97c0bd22a8
commit 531d953507
2 changed files with 7 additions and 6 deletions

1
.gitignore vendored
View File

@ -25,6 +25,7 @@ yarn-debug.log*
yarn-error.log* yarn-error.log*
# local env files # local env files
.env
.env.local .env.local
.env.development.local .env.development.local
.env.test.local .env.test.local

View File

@ -95,20 +95,20 @@ const CartItem = ({
<div className="flex-1 flex flex-col text-base"> <div className="flex-1 flex flex-col text-base">
{/** TODO: Replace this. No `path` found at Cart */} {/** TODO: Replace this. No `path` found at Cart */}
<Link href={`/product/${item.url.split('/')[3]}`}> <Link href={`/product/${item.url.split('/')[3]}`}>
<span className="font-bold mb-2 text-lg cursor-pointer"> <span className="font-bold text-lg cursor-pointer leading-6">
{item.name} {item.name}
</span> </span>
</Link> </Link>
{item.options && item.options.length > 0 ? ( {item.options && item.options.length > 0 ? (
<div className="flex flex-col mb-2"> <div className="">
{item.options.map((option:ItemOption) => {item.options.map((option:ItemOption, i: number) =>
<span key={`${item.id}-${option.name}`} className="text-sm"> <span key={`${item.id}-${option.name}`} className="text-sm font-semibold text-accents-7">
{`${option.name}: ${option.value}`} {option.value}{ i === item.options.length -1 ? "" : ", " }
</span> </span>
)} )}
</div> </div>
) : null} ) : null}
<div className="flex items-center"> <div className="flex items-center mt-3">
<button type="button" onClick={() => increaseQuantity(-1)}> <button type="button" onClick={() => increaseQuantity(-1)}>
<Minus width={18} height={18} /> <Minus width={18} height={18} />
</button> </button>