-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move away from notification specific code
- Loading branch information
1 parent
241a9cf
commit ceab9c6
Showing
34 changed files
with
471 additions
and
810 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { useFormikContext } from "formik"; | ||
import { CampaignForm } from "user/views/adsManager/types"; | ||
import { CampaignFormat } from "graphql/types"; | ||
import { NotificationAd } from "user/ads/NotificationAd"; | ||
|
||
interface Props { | ||
onCreate: () => void; | ||
} | ||
|
||
export const CreativeSpecificFields = ({ onCreate }: Props) => { | ||
const { values } = useFormikContext<CampaignForm>(); | ||
|
||
if (values.format === CampaignFormat.PushNotification) | ||
return <NotificationAd onCreate={onCreate} />; | ||
|
||
return null; | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.