Use kebab case instead of camel case

This commit is contained in:
tniezg
2021-08-18 18:14:49 +02:00
parent 17f8d497b8
commit c150a79a6b
28 changed files with 39 additions and 39 deletions

View File

@@ -2,12 +2,12 @@ import type { Fetcher, SWRHook } from '@commerce/utils/types'
import useSearch from '@commerce/product/use-search'
import type { Product, SearchProductsHook } from '@commerce/types/product'
import type { UseSearch } from '@commerce/product/use-search'
import normalizeProduct from '../utils/normalizeProduct'
import normalizeProduct from '../utils/normalize-product'
import type { GraphQLFetcherResult } from '@commerce/api'
import { IProducts } from '@spree/storefront-api-v2-sdk/types/interfaces/Product'
const nextToSpreeSortMap: { [key: string]: string } = {
'trending-desc': 'updated_at', // Spree has no "trending" filter. Use updated_at.
'trending-desc': 'updated_at', // FIXME: Spree has no "trending" filter. Using updated_at.
'latest-desc': 'updated_at',
'price-asc': 'price',
'price-desc': '-price',