File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed
pages/DeploySettingsPage/NotificationsPage Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,19 @@ export const NotificationsPage: FC = () => {
119
119
< >
120
120
Control delivery methods for notifications on this deployment.
121
121
Notifications may be disabled in your{ " " }
122
- < Link to = "/settings/notifications" > profile settings</ Link > .
122
+ < Link
123
+ to = "/settings/notifications"
124
+ css = { ( theme ) => ( {
125
+ color : theme . roles . active . fill . outline ,
126
+ textDecoration : "none" ,
127
+ "&: hover" : {
128
+ textDecoration : "underline" ,
129
+ } ,
130
+ } ) }
131
+ >
132
+ profile settings
133
+ </ Link >
134
+ .
123
135
</ >
124
136
}
125
137
layout = "fluid"
@@ -178,7 +190,9 @@ const EventsView: FC<EventsViewProps> = ({
178
190
templatesByGroup,
179
191
} ) => {
180
192
const isUsingWebhook = availableMethods . includes ( "webhook" ) ;
193
+ const isUsingSmpt = availableMethods . includes ( "smtp" ) ;
181
194
const webhookEndpoint = notificationsConfig ?. webhook . endpoint ;
195
+ const smtpConfig = notificationsConfig ?. email ;
182
196
183
197
return (
184
198
< Stack spacing = { 3 } >
@@ -187,6 +201,13 @@ const EventsView: FC<EventsViewProps> = ({
187
201
Webhook method is enabled, but the endpoint is not configured.
188
202
</ Alert >
189
203
) }
204
+
205
+ { isUsingSmpt && ! smtpConfig && (
206
+ < Alert severity = "warning" >
207
+ SMTP method is enabled, but is not configured.
208
+ </ Alert >
209
+ ) }
210
+
190
211
{ Object . entries ( templatesByGroup ) . map ( ( [ group , templates ] ) => (
191
212
< Card
192
213
key = { group }
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ export const withDesktopViewport = (Story: FC) => (
97
97
98
98
export const withAuthProvider = ( Story : FC , { parameters } : StoryContext ) => {
99
99
if ( ! parameters . user ) {
100
- console . warn ( "You forgot to add `parameters.user` to your story" ) ;
100
+ throw new Error ( "You forgot to add `parameters.user` to your story" ) ;
101
101
}
102
102
// eslint-disable-next-line react-hooks/rules-of-hooks -- decorators are components
103
103
const queryClient = useQueryClient ( ) ;
You can’t perform that action at this time.
0 commit comments