Skip to content

Commit

Permalink
Revert "feat: add Flex webinar notification banner (#20331)" (#20340)
Browse files Browse the repository at this point in the history
This reverts commit 12277cc.
  • Loading branch information
Siddhant-K-code authored Nov 6, 2024
1 parent a23f5fd commit 286b530
Showing 1 changed file with 4 additions and 28 deletions.
32 changes: 4 additions & 28 deletions components/dashboard/src/AppNotifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,11 @@ const GENERAL_NOTIFICATION = (
} as Notification;
};

/* const AWS_REINVENT_NOTIFICATION = (updateUser: (user: Partial<UserProtocol>) => Promise<User>) => {
const AWS_REINVENT_NOTIFICATION = (updateUser: (user: Partial<UserProtocol>) => Promise<User>) => {
return GENERAL_NOTIFICATION(
"aws_reinvent_2024",
<span className="text-md">
<b>See you at re:Invent!</b> Book a demo with us, and join our developer productivity leaders roundtable
(limited tickets) |{" "}
<b>See you at re:Invent!</b> Book a demo with us, and join our developer productivity leaders roundtable (limited tickets) |{" "}
<a
className="text-kumquat-ripe font-bold"
href="https://www.gitpod.io/aws-reinvent-24"
Expand All @@ -185,25 +184,6 @@ const GENERAL_NOTIFICATION = (
updateUser,
"aws_reinvent_notification",
);
}; */

const FLEX_WEBINAR_NOTIFICATION = (updateUser: (user: Partial<UserProtocol>) => Promise<User>) => {
return GENERAL_NOTIFICATION(
"flex_webinar_2024",
<span className="text-md">
<b>Upcoming webinar:</b> Gitpod Flex - Deploy your self-hosted CDE in 3 minutes |{" "}
<a
className="text-kumquat-ripe font-bold"
href="https://www.gitpod.io/webinars/gitpod-flex-demo"
target="_blank"
rel="noreferrer"
>
Register now
</a>
</span>,
updateUser,
"flex_webinar_notification",
);
};

export function AppNotifications() {
Expand Down Expand Up @@ -239,12 +219,8 @@ export function AppNotifications() {
notifications.push(GITPOD_FLEX_INTRODUCTION((u: Partial<UserProtocol>) => mutateAsync(u)));
}

// if (isGitpodIo() && !user?.profile?.coachmarksDismissals["aws_reinvent_2024"]) {
// notifications.push(AWS_REINVENT_NOTIFICATION((u: Partial<UserProtocol>) => mutateAsync(u)));
// }

if (isGitpodIo() && !user?.profile?.coachmarksDismissals["flex_webinar_2024"]) {
notifications.push(FLEX_WEBINAR_NOTIFICATION((u: Partial<UserProtocol>) => mutateAsync(u)));
if (isGitpodIo() && !user?.profile?.coachmarksDismissals["aws_reinvent_2024"]) {
notifications.push(AWS_REINVENT_NOTIFICATION((u: Partial<UserProtocol>) => mutateAsync(u)));
}
}

Expand Down

0 comments on commit 286b530

Please sign in to comment.