diff --git a/app/(app)/dashboard/ads/[id]/edit/edit-form.tsx b/app/(app)/dashboard/ads/[id]/edit/edit-form.tsx index da3c66b..272852b 100644 --- a/app/(app)/dashboard/ads/[id]/edit/edit-form.tsx +++ b/app/(app)/dashboard/ads/[id]/edit/edit-form.tsx @@ -3,7 +3,7 @@ import { useState, useTransition } from "react"; import { useRouter } from "next/navigation"; import { updateCampaign, updateCreatives, uploadAdAsset } from "@/app/actions/ads"; -import { AD_FORMATS, paletteFor, type AdCreative, type AdFormatId } from "@/lib/ads/formats"; +import { DESIGN_FORMATS, paletteFor, type AdCreative, type AdFormatId } from "@/lib/ads/formats"; import { AdPreview } from "@/components/ads/ad-preview"; import { ColorField } from "@/components/ads/color-field"; import type { AdTheme } from "@/lib/ads/theme"; @@ -185,7 +185,7 @@ export function EditCampaignForm({ {current && (
- {AD_FORMATS.map((f) => { + {DESIGN_FORMATS.map((f) => { const c = creatives.find((x) => x.format === f.id); if (!c) return null; return ( diff --git a/app/(app)/dashboard/ads/new/form.tsx b/app/(app)/dashboard/ads/new/form.tsx index 128b202..848424c 100644 --- a/app/(app)/dashboard/ads/new/form.tsx +++ b/app/(app)/dashboard/ads/new/form.tsx @@ -3,7 +3,7 @@ import { useState, useTransition, useRef } from "react"; import { useRouter } from "next/navigation"; import { previewAds, saveCampaign, uploadAdAsset } from "@/app/actions/ads"; -import { AD_FORMATS, paletteFor, type AdCreative, type AdFormatId } from "@/lib/ads/formats"; +import { DESIGN_FORMATS, paletteFor, type AdCreative, type AdFormatId } from "@/lib/ads/formats"; import type { SiteBrand } from "@/lib/ads/brand"; import { AdPreview } from "@/components/ads/ad-preview"; import { ColorField } from "@/components/ads/color-field"; @@ -215,7 +215,7 @@ export function NewAdForm() { )}
- {AD_FORMATS.map((f) => { + {DESIGN_FORMATS.map((f) => { const c = creatives.find((x) => x.format === f.id); if (!c) return null; return ( @@ -242,7 +242,7 @@ export function NewAdForm() { {/* Editor for the active format */}

- Edit — {AD_FORMATS.find((f) => f.id === active)?.label} + Edit — {DESIGN_FORMATS.find((f) => f.id === active)?.label}