diff --git a/packages/admin/dashboard/src/i18n/translations/en.json b/packages/admin/dashboard/src/i18n/translations/en.json index 4c639606e4..1f1c96f302 100644 --- a/packages/admin/dashboard/src/i18n/translations/en.json +++ b/packages/admin/dashboard/src/i18n/translations/en.json @@ -1714,7 +1714,11 @@ "campaign": { "existing": { "title": "Existing Campaign", - "description": "Add promotion to an existing campaign." + "description": "Add promotion to an existing campaign.", + "placeholder": { + "title": "No existing campaigns", + "desc": "You can create one to track multiple promotions and set budget limits." + } }, "new": { "title": "New Campaign", diff --git a/packages/admin/dashboard/src/routes/campaigns/campaign-create/components/create-campaign-form/create-campaign-form.tsx b/packages/admin/dashboard/src/routes/campaigns/campaign-create/components/create-campaign-form/create-campaign-form.tsx index 71ecf142a7..d6fb17e932 100644 --- a/packages/admin/dashboard/src/routes/campaigns/campaign-create/components/create-campaign-form/create-campaign-form.tsx +++ b/packages/admin/dashboard/src/routes/campaigns/campaign-create/components/create-campaign-form/create-campaign-form.tsx @@ -78,7 +78,10 @@ export const CreateCampaignForm = () => { return ( -
+ diff --git a/packages/admin/dashboard/src/routes/promotions/promotion-add-campaign/components/add-campaign-promotion-form/add-campaign-promotion-form.tsx b/packages/admin/dashboard/src/routes/promotions/promotion-add-campaign/components/add-campaign-promotion-form/add-campaign-promotion-form.tsx index ab56e02d80..9c91c9e67d 100644 --- a/packages/admin/dashboard/src/routes/promotions/promotion-add-campaign/components/add-campaign-promotion-form/add-campaign-promotion-form.tsx +++ b/packages/admin/dashboard/src/routes/promotions/promotion-add-campaign/components/add-campaign-promotion-form/add-campaign-promotion-form.tsx @@ -110,6 +110,20 @@ export const AddCampaignPromotionFields = ({ + {!campaigns.length && ( +
+ + {t( + "promotions.form.campaign.existing.placeholder.title" + )} + + + {t( + "promotions.form.campaign.existing.placeholder.desc" + )} + +
+ )} {campaigns.map((c) => ( {c.name?.toUpperCase()}