diff --git a/src/user/views/adsManager/views/advanced/components/adSet/fields/PickerFields.tsx b/src/user/views/adsManager/views/advanced/components/adSet/fields/PickerFields.tsx index cadc558e..0c20c5df 100644 --- a/src/user/views/adsManager/views/advanced/components/adSet/fields/PickerFields.tsx +++ b/src/user/views/adsManager/views/advanced/components/adSet/fields/PickerFields.tsx @@ -2,20 +2,26 @@ import { Typography } from "@mui/material"; import { SegmentPicker } from "components/Segment/SegmentPicker"; import { PlatformPicker } from "components/Platform/PlatformPicker"; import { CardContainer } from "components/Card/CardContainer"; +import { useField } from "formik"; +import { CampaignFormat } from "graphql/types"; interface Props { index: number; } export function PickerFields({ index }: Props) { + const [, format] = useField("format"); + return ( <> - - - Select the audience you would like to advertise to by interests. - - - + {format.value !== CampaignFormat.NewsDisplayAd && ( + + + Select the audience you would like to advertise to by interests. + + + + )} diff --git a/src/user/views/adsManager/views/advanced/components/review/components/AdSetReview.tsx b/src/user/views/adsManager/views/advanced/components/review/components/AdSetReview.tsx index 1917ae07..79ac0452 100644 --- a/src/user/views/adsManager/views/advanced/components/review/components/AdSetReview.tsx +++ b/src/user/views/adsManager/views/advanced/components/review/components/AdSetReview.tsx @@ -13,7 +13,7 @@ interface Props { errors?: string | FormikErrors; } -export function AdSetReview({ adSet, idx, errors }: Props) { +export function AdSetReview({ adSet, idx, errors, format }: Props) { const included = adSet.creatives.filter((c) => c.included); const hasErrors = !!errors; if (typeof errors === "string") { @@ -37,11 +37,13 @@ export function AdSetReview({ adSet, idx, errors }: Props) { value={adSet.name || `Ad Set ${idx + 1}`} error={hasErrors ? adSetError?.name : ""} /> - + {format !== CampaignFormat.NewsDisplayAd && ( + + )}