Skip to content

Commit

Permalink
spare parts
Browse files Browse the repository at this point in the history
  • Loading branch information
priyanka-patra98 committed Dec 27, 2024
1 parent 81575e2 commit c6c06d7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface Props {
product: FragmentOf<typeof WarrantyFragment>;
}

export const Warranty = async ({ product }: Props) => {
export const Warranty = ({ product }: Props) => {
const t = useTranslations('Product.Warranty');

if (!product.warranty) {
Expand All @@ -22,8 +22,13 @@ export const Warranty = async ({ product }: Props) => {

return (
<>
<h2 className="mb-4 mt-8 text-xl font-bold md:text-2xl">Spare Parts</h2>
<p dangerouslySetInnerHTML={{ __html: product.warranty }}>{product.warranty}</p>
<div className='tech-data'>
<div className='product-reviews-header'>
<h2 className="mb-4 mt-8 text-xl font-bold md:text-2xl page-heading">Spare Parts</h2>
<hr className="product-info-hr" />
</div>
<p dangerouslySetInnerHTML={{ __html: product.warranty }}></p>
</div>
</>
);
};
4 changes: 2 additions & 2 deletions core/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -631,11 +631,11 @@ div#width {
font-family: "Roboto Slab", serif;
font-size: 16px;
font-style: normal;
float: left;
float: inherit;
font-weight: 700;
letter-spacing: 1.5px;
line-height: 1.175;
margin-left: 2px;
margin-left: 22px;
text-transform: uppercase;
}
.product-details-dd {
Expand Down

0 comments on commit c6c06d7

Please sign in to comment.