Skip to content

Commit

Permalink
fix: use Ads verbiage over creative verbiage (#971)
Browse files Browse the repository at this point in the history
* fix: use Ads verbiage over creative verbiage

* fix: add explicit redirect
  • Loading branch information
IanKrieger authored Nov 14, 2023
1 parent 05d034f commit 882aabb
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/Creatives/CreativeList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function CreativeList() {
/>
)}
<CardContainer
header="Creatives"
header="Ads"
sx={{
flexGrow: 1,
overflowX: "auto",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Creatives/hooks/useSubmitCreative.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function useSubmitCreative(props: { id: string }) {
const refetchQueries = [
refetchAdvertiserCreativesQuery({ advertiserId: advertiser.id }),
];
const onCompleted = () => history.replace("/user/main/creatives");
const onCompleted = () => history.replace("/user/main/ads");

const [createCreative, { error: createError, loading: createLoading }] =
useCreateCreativeMutation({
Expand Down
4 changes: 2 additions & 2 deletions src/components/Drawer/MiniSideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: (
<LightbulbOutlinedIcon
fontSize="large"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navigation/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function Navbar() {
component: <UploadImage />,
},
{
route: "user/main/creatives",
route: "user/main/ads",
component: <NewCreativeButton />,
},
];
Expand Down
4 changes: 3 additions & 1 deletion src/user/User.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,12 @@ export function User() {
/>

<ProtectedRoute
path="/user/main/creatives"
path="/user/main/ads"
authedComponent={CreativeList}
/>

<Redirect from="/user/main/creatives" to="/user/main/ads" exact />

{/* default */}
<Redirect to="/user/main/campaign" />
</Switch>
Expand Down
2 changes: 1 addition & 1 deletion src/user/ads/InlineContentAd.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function InlineContentAd(props: {

return (
<Box display="flex" flexDirection="column" gap={2}>
<CardContainer header="News display creative" sx={{ flexGrow: 1 }}>
<CardContainer header="News Display Ad" sx={{ flexGrow: 1 }}>
<FormikTextField name={withName("name")} label="Name" />

<FormikTextField
Expand Down
2 changes: 1 addition & 1 deletion src/user/ads/NotificationAd.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function NotificationAd(props: {
}, []);

return (
<CardContainer header="Notification creative">
<CardContainer header="Notification Ad">
<FormikTextField name={withName("name")} label="Name" />

<Stack direction="row" alignItems="center" spacing={1}>
Expand Down

0 comments on commit 882aabb

Please sign in to comment.