Skip to content

Commit

Permalink
[project-base] fixed product detail code and brand (#3596)
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMolcik authored Nov 19, 2024
2 parents f1f3fad + 7beedb0 commit 16cc016
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,18 @@ export const ProductDetailContent: FC<ProductDetailContentProps> = ({ product, i
/>

<div className="flex w-full flex-1 flex-col gap-4">
<div className="flex flex-col gap-1">
<div className="flex flex-col">
{product.namePrefix && <ProductDetailPrefix>{product.namePrefix}</ProductDetailPrefix>}

<ProductDetailHeading>
{product.name} {product.nameSuffix}
</ProductDetailHeading>

<div className="flex gap-4 text-[13px]">
<div className="flex items-center gap-5 text-sm">
{product.brand && (
<div>
<span>{t('Brand')}: </span>
<ExtendedNextLink href={product.brand.slug} type="brand">
<ExtendedNextLink className="text-sm" href={product.brand.slug} type="brand">
{product.brand.name}
</ExtendedNextLink>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const ProductDetailPrefix: FC = ({ children }) => (
<div className="font-secondary text-textDisabled">{children}</div>
<div className="mb-1 font-secondary text-textDisabled">{children}</div>
);

export const ProductDetailHeading: FC = ({ children }) => <h1>{children}</h1>;
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const ProductDetailMainVariantContent: FC<ProductDetailMainVariantContent
{product.name} {product.nameSuffix}
</ProductDetailHeading>

<div>
<div className="text-sm">
{t('Code')}: {product.catalogNumber}
</div>
</div>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 16cc016

Please sign in to comment.