Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"devDependencies": {
"@playwright/test": "^1.47.1",
"@types/lodash": "^4.17.7",
"@types/node": "22.5.4",
"@types/node": "22.5.5",
"@types/nprogress": "^0.2.3",
"@types/react-instantsearch-dom": "^6.12.8",
"@types/uuid": "^10.0.0",
Expand Down
6 changes: 3 additions & 3 deletions src/components/Product/SingleProduct.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ const SingleProduct = ({ product }: IProductRootObject) => {
/>
)}
<div className="px-4 md:ml-8">
<h1 className="text-3xl font-bold text-center md:text-left mb-4">
<h1 className="text-2xl font-bold text-center md:text-left mb-4">
{name}
</h1>
{/* Display sale price when on sale */}
{onSale && (
<div className="flex flex-col md:flex-row items-center md:items-start mb-4">
<p className="text-3xl font-bold text-gray-900">
<p className="text-2xl font-bold text-gray-900">
{product.variations && filteredVariantPrice(price, '')}
{!product.variations && salePrice}
</p>
Expand All @@ -97,7 +97,7 @@ const SingleProduct = ({ product }: IProductRootObject) => {
)}
{/* Display regular price when not on sale */}
{!onSale && (
<p className="text-2xl font-bold mb-4">{price}</p>
<p className="text-2xl font-bold mb-4">{price}</p>
)}
<p className="text-lg mb-4 text-center md:text-left">{DESCRIPTION_WITHOUT_HTML}</p>
{Boolean(product.stockQuantity) && (
Expand Down
Loading