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

@@ -0,0 +1,20 @@
import { SpreeProductImage } from '../types'
import getImageUrl from './get-image-url'
const createGetAbsoluteImageUrl =
(host: string) =>
(
image: SpreeProductImage,
minWidth: number,
minHeight: number
): string | null => {
const url = getImageUrl(image, minWidth, minHeight)
if (url === null) {
return null
}
return `${host}${url}`
}
export default createGetAbsoluteImageUrl