@@ -17,8 +17,6 @@ import {
17
17
systemNotificationTemplates ,
18
18
updateNotificationTemplateMethod ,
19
19
} from "api/queries/notifications" ;
20
- import type { NotificationsConfig } from "api/typesGenerated" ;
21
- import { Alert } from "components/Alert/Alert" ;
22
20
import { displaySuccess } from "components/GlobalSnackbar/utils" ;
23
21
import { Loader } from "components/Loader/Loader" ;
24
22
import { Stack } from "components/Stack/Stack" ;
@@ -157,7 +155,6 @@ export const NotificationsPage: FC = () => {
157
155
availableMethods = { dispatchMethods . data . available . map (
158
156
castNotificationMethod ,
159
157
) }
160
- notificationsConfig = { deploymentValues . config . notifications }
161
158
templatesByGroup = { templatesByGroup . data }
162
159
/>
163
160
) :(
@@ -179,35 +176,16 @@ export const NotificationsPage: FC = () => {
179
176
type EventsViewProps = {
180
177
defaultMethod :NotificationMethod ;
181
178
availableMethods :NotificationMethod [ ] ;
182
- notificationsConfig ?:NotificationsConfig ;
183
179
templatesByGroup :ReturnType < typeof selectTemplatesByGroup > ;
184
180
} ;
185
181
186
182
const EventsView :FC < EventsViewProps > = ( {
187
183
defaultMethod,
188
184
availableMethods,
189
- notificationsConfig,
190
185
templatesByGroup,
191
186
} ) => {
192
- const isUsingWebhook = availableMethods . includes ( "webhook" ) ;
193
- const isUsingSmpt = availableMethods . includes ( "smtp" ) ;
194
- const webhookEndpoint = notificationsConfig ?. webhook . endpoint ;
195
- const smtpConfig = notificationsConfig ?. email ;
196
-
197
187
return (
198
188
< Stack spacing = { 3 } >
199
- { isUsingWebhook && ! webhookEndpoint && (
200
- < Alert severity = "warning" >
201
- Webhook method is enabled, but the endpoint is not configured.
202
- </ Alert >
203
- ) }
204
-
205
- { isUsingSmpt && ! smtpConfig && (
206
- < Alert severity = "warning" >
207
- SMTP method is enabled, but is not configured.
208
- </ Alert >
209
- ) }
210
-
211
189
{ Object . entries ( templatesByGroup ) . map ( ( [ group , templates ] ) => (
212
190
< Card
213
191
key = { group }