From 882aabbada2a47e4d929c6ea14b1cdef719d33e5 Mon Sep 17 00:00:00 2001 From: Ian Krieger <48930920+IanKrieger@users.noreply.github.com> Date: Tue, 14 Nov 2023 13:34:51 -0500 Subject: [PATCH] fix: use Ads verbiage over creative verbiage (#971) * fix: use Ads verbiage over creative verbiage * fix: add explicit redirect --- src/components/Creatives/CreativeList.tsx | 2 +- src/components/Creatives/hooks/useSubmitCreative.tsx | 2 +- src/components/Drawer/MiniSideBar.tsx | 4 ++-- src/components/Navigation/Navbar.tsx | 2 +- src/user/User.tsx | 4 +++- src/user/ads/InlineContentAd.tsx | 2 +- src/user/ads/NotificationAd.tsx | 2 +- 7 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/components/Creatives/CreativeList.tsx b/src/components/Creatives/CreativeList.tsx index 650c265f..198e0432 100644 --- a/src/components/Creatives/CreativeList.tsx +++ b/src/components/Creatives/CreativeList.tsx @@ -87,7 +87,7 @@ export function CreativeList() { /> )} history.replace("/user/main/creatives"); + const onCompleted = () => history.replace("/user/main/ads"); const [createCreative, { error: createError, loading: createLoading }] = useCreateCreativeMutation({ diff --git a/src/components/Drawer/MiniSideBar.tsx b/src/components/Drawer/MiniSideBar.tsx index f6deb44e..f3dbfc19 100644 --- a/src/components/Drawer/MiniSideBar.tsx +++ b/src/components/Drawer/MiniSideBar.tsx @@ -57,8 +57,8 @@ export default function MiniSideBar({ children }: PropsWithChildren) { disabled: !advertiser.selfServiceManageCampaign, }, { - label: "Creatives", - href: "/user/main/creatives", + label: "Ads", + href: "/user/main/ads", icon: ( , }, { - route: "user/main/creatives", + route: "user/main/ads", component: , }, ]; diff --git a/src/user/User.tsx b/src/user/User.tsx index 38bf05c2..e76f3258 100644 --- a/src/user/User.tsx +++ b/src/user/User.tsx @@ -114,10 +114,12 @@ export function User() { /> + + {/* default */} diff --git a/src/user/ads/InlineContentAd.tsx b/src/user/ads/InlineContentAd.tsx index f5ba3938..418daf50 100644 --- a/src/user/ads/InlineContentAd.tsx +++ b/src/user/ads/InlineContentAd.tsx @@ -26,7 +26,7 @@ export function InlineContentAd(props: { return ( - + +