@@ -167,12 +167,11 @@ const GENERAL_NOTIFICATION = (
167167 } as Notification ;
168168} ;
169169
170- /* const AWS_REINVENT_NOTIFICATION = (updateUser: (user: Partial<UserProtocol>) => Promise<User>) => {
170+ const AWS_REINVENT_NOTIFICATION = ( updateUser : ( user : Partial < UserProtocol > ) => Promise < User > ) => {
171171 return GENERAL_NOTIFICATION (
172172 "aws_reinvent_2024" ,
173173 < span className = "text-md" >
174- <b>See you at re:Invent!</b> Book a demo with us, and join our developer productivity leaders roundtable
175- (limited tickets) |{" "}
174+ < b > See you at re:Invent!</ b > Book a demo with us, and join our developer productivity leaders roundtable (limited tickets) |{ " " }
176175 < a
177176 className = "text-kumquat-ripe font-bold"
178177 href = "https://www.gitpod.io/aws-reinvent-24"
@@ -185,25 +184,6 @@ const GENERAL_NOTIFICATION = (
185184 updateUser ,
186185 "aws_reinvent_notification" ,
187186 ) ;
188- }; */
189-
190- const FLEX_WEBINAR_NOTIFICATION = ( updateUser : ( user : Partial < UserProtocol > ) => Promise < User > ) => {
191- return GENERAL_NOTIFICATION (
192- "flex_webinar_2024" ,
193- < span className = "text-md" >
194- < b > Upcoming webinar:</ b > Gitpod Flex - Deploy your self-hosted CDE in 3 minutes |{ " " }
195- < a
196- className = "text-kumquat-ripe font-bold"
197- href = "https://www.gitpod.io/webinars/gitpod-flex-demo"
198- target = "_blank"
199- rel = "noreferrer"
200- >
201- Register now
202- </ a >
203- </ span > ,
204- updateUser ,
205- "flex_webinar_notification" ,
206- ) ;
207187} ;
208188
209189export function AppNotifications ( ) {
@@ -239,12 +219,8 @@ export function AppNotifications() {
239219 notifications . push ( GITPOD_FLEX_INTRODUCTION ( ( u : Partial < UserProtocol > ) => mutateAsync ( u ) ) ) ;
240220 }
241221
242- // if (isGitpodIo() && !user?.profile?.coachmarksDismissals["aws_reinvent_2024"]) {
243- // notifications.push(AWS_REINVENT_NOTIFICATION((u: Partial<UserProtocol>) => mutateAsync(u)));
244- // }
245-
246- if ( isGitpodIo ( ) && ! user ?. profile ?. coachmarksDismissals [ "flex_webinar_2024" ] ) {
247- notifications . push ( FLEX_WEBINAR_NOTIFICATION ( ( u : Partial < UserProtocol > ) => mutateAsync ( u ) ) ) ;
222+ if ( isGitpodIo ( ) && ! user ?. profile ?. coachmarksDismissals [ "aws_reinvent_2024" ] ) {
223+ notifications . push ( AWS_REINVENT_NOTIFICATION ( ( u : Partial < UserProtocol > ) => mutateAsync ( u ) ) ) ;
248224 }
249225 }
250226
0 commit comments