mirror of
https://github.com/vercel/commerce.git
synced 2025-08-01 14:31:22 +00:00
Added links to pages in the footer
This commit is contained in:
@@ -34,9 +34,6 @@ export const filterQuery = (query: any) =>
|
||||
return obj
|
||||
}, {})
|
||||
|
||||
// Remove trailing and leading slash
|
||||
export const getSlug = (path: string) => path.replace(/^\/|\/$/g, '')
|
||||
|
||||
export const getCategoryPath = (slug: string, brand?: string) =>
|
||||
`/search${brand ? `/designers/${brand}` : ''}${slug ? `/${slug}` : ''}`
|
||||
|
||||
|
Reference in New Issue
Block a user