mirror of
https://github.com/vercel/commerce.git
synced 2025-05-20 08:26:59 +00:00
fix: merge conflicts
This commit is contained in:
parent
396b07c126
commit
3ec0b2485a
@ -1,6 +1,7 @@
|
|||||||
|
import { ReadonlyURLSearchParams } from 'next/navigation';
|
||||||
import { MedusaProductOption } from './medusa/types';
|
import { MedusaProductOption } from './medusa/types';
|
||||||
|
|
||||||
export const createUrl = (pathname: string, params: URLSearchParams) => {
|
export const createUrl = (pathname: string, params: URLSearchParams | ReadonlyURLSearchParams) => {
|
||||||
const paramsString = params.toString();
|
const paramsString = params.toString();
|
||||||
const queryString = `${paramsString.length ? '?' : ''}${paramsString}`;
|
const queryString = `${paramsString.length ? '?' : ''}${paramsString}`;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user