feat: variant selector

This commit is contained in:
Victor Gerbrands
2023-05-03 14:56:55 +02:00
parent e0e67f4270
commit cfe181ac41
4 changed files with 33 additions and 16 deletions

View File

@@ -90,6 +90,7 @@ export function VariantSelector({
{option.values.map((value) => {
// Base option params on selected variant params.
const optionParams = new URLSearchParams(selectedVariantParams);
// Update the params using the current option to reflect how the url would change.
optionParams.set(option.name.toLowerCase(), value);