chore: cleanup

This commit is contained in:
Erik Tiekstra
2024-08-15 08:14:23 +02:00
parent e7ec6b09c3
commit a0053335a6
5 changed files with 10 additions and 20 deletions
@@ -1,9 +1,7 @@
import { insertResponseToImageVaultAsset } from "@/utils/imageVault"
import { removeMultipleSlashes } from "@/utils/url"
import { LoyaltyPageRefsDataRaw } from "./output"
import { InsertResponse } from "@/types/components/imageVaultImage"
import {
LoyaltyBlocksTypenameEnum,
LoyaltyCardsGridEnum,
@@ -81,13 +79,6 @@ export function getConnections(refs: LoyaltyPageRefsDataRaw) {
return connections
}
export function makeImageVaultImage(image: any) {
return image && !!Object.keys(image).length
? insertResponseToImageVaultAsset(image as InsertResponse)
: undefined
}
export function makeButtonObject(button: any) {
if (!button) return null