@@ -167,12 +167,11 @@ const GENERAL_NOTIFICATION = (
167
167
} as Notification ;
168
168
} ;
169
169
170
- /* const AWS_REINVENT_NOTIFICATION = (updateUser: (user: Partial<UserProtocol>) => Promise<User>) => {
170
+ const AWS_REINVENT_NOTIFICATION = ( updateUser : ( user : Partial < UserProtocol > ) => Promise < User > ) => {
171
171
return GENERAL_NOTIFICATION (
172
172
"aws_reinvent_2024" ,
173
173
< 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) |{ " " }
176
175
< a
177
176
className = "text-kumquat-ripe font-bold"
178
177
href = "https://www.gitpod.io/aws-reinvent-24"
@@ -185,25 +184,6 @@ const GENERAL_NOTIFICATION = (
185
184
updateUser ,
186
185
"aws_reinvent_notification" ,
187
186
) ;
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
- ) ;
207
187
} ;
208
188
209
189
export function AppNotifications ( ) {
@@ -239,12 +219,8 @@ export function AppNotifications() {
239
219
notifications . push ( GITPOD_FLEX_INTRODUCTION ( ( u : Partial < UserProtocol > ) => mutateAsync ( u ) ) ) ;
240
220
}
241
221
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 ) ) ) ;
248
224
}
249
225
}
250
226
0 commit comments