Skip to content

Commit

Permalink
chore: move away from notification specific code
Browse files Browse the repository at this point in the history
  • Loading branch information
IanKrieger committed Aug 18, 2023
1 parent 241a9cf commit ceab9c6
Show file tree
Hide file tree
Showing 34 changed files with 471 additions and 810 deletions.
2 changes: 1 addition & 1 deletion src/components/Box/BoxContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function BoxContainer(
{props.header}
</Typography>
)}
<Box mb={2} display="flex">
<Box mb={2} display="flex" flexDirection="column">
{props.children}
</Box>
</Box>
Expand Down
96 changes: 0 additions & 96 deletions src/components/Creatives/CreativeAutocomplete.tsx

This file was deleted.

73 changes: 0 additions & 73 deletions src/components/Creatives/CreativeFields.tsx

This file was deleted.

89 changes: 0 additions & 89 deletions src/components/Creatives/CreativeList.tsx

This file was deleted.

17 changes: 17 additions & 0 deletions src/components/Creatives/CreativeSpecificFields.tsx
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;
};
18 changes: 0 additions & 18 deletions src/components/Creatives/CreativeTypePreview.tsx

This file was deleted.

Loading

0 comments on commit ceab9c6

Please sign in to comment.