Skip to content

Commit

Permalink
Update packages and dynamic routes for Next 10
Browse files Browse the repository at this point in the history
  • Loading branch information
w3bdesign committed Jan 7, 2021
1 parent bd78754 commit 13f40d7
Show file tree
Hide file tree
Showing 4 changed files with 215 additions and 224 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ Optional plugin:

The current release has been tested and is confirmed working with the following versions:

- WordPress version 5.5.3
- WordPress version 5.6.0
- WooCommerce version 4.8.0
- WP GraphQL version 1.0.3
- WP GraphQL version 1.0.5
- WooGraphQL version 0.6.1

2. For debugging and testing, install either:
Expand Down
14 changes: 11 additions & 3 deletions components/Product/IndexProducts.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ const IndexProducts = ({ products }) => {
key={uuidv4()}
className="flex flex-col p-6 md:w-1/2 xl:w-1/4"
>
<Link href="/produkt/[post]" as={`/produkt/${slug}?id=${databaseId}`}>
<Link
href={`/produkt/${encodeURIComponent(
slug
)}?id=${encodeURIComponent(databaseId)}`}
>
<a>
{image ? (
<img
Expand All @@ -49,7 +53,12 @@ const IndexProducts = ({ products }) => {
)}
</a>
</Link>
<Link href="/produkt/[post]" as={`/produkt/${slug}?id=${databaseId}`}>

<Link
href={`/produkt/${encodeURIComponent(
slug
)}?id=${encodeURIComponent(databaseId)}`}
>
<a>
<div className="flex justify-center pt-3">
<p className="font-bold text-center cursor-pointer">
Expand All @@ -58,7 +67,6 @@ const IndexProducts = ({ products }) => {
</div>
</a>
</Link>

{/* Display sale price when on sale */}
{onSale && (
<>
Expand Down
Loading

0 comments on commit 13f40d7

Please sign in to comment.