@@ -11,7 +11,7 @@ interface INotificationsSettingsItemProps {
11
11
}
12
12
13
13
interface INotificationsSettingsDetailsProps {
14
- notification : Scheduler . INotificationsSettings ;
14
+ notificationsSettings : Scheduler . INotificationsSettings ;
15
15
}
16
16
17
17
const NotificationsSettingsItem : React . FC < INotificationsSettingsItemProps > = ( {
@@ -32,7 +32,7 @@ const NotificationsSettingsItem: React.FC<INotificationsSettingsItemProps> = ({
32
32
33
33
export const NotificationsSettingsDetails : React . FC <
34
34
INotificationsSettingsDetailsProps
35
- > = ( { notification } ) => {
35
+ > = ( { notificationsSettings } ) => {
36
36
const trans = useTranslator ( 'jupyterlab' ) ;
37
37
38
38
return (
@@ -43,7 +43,7 @@ export const NotificationsSettingsDetails: React.FC<
43
43
</ FormLabel >
44
44
< Stack spacing = { 2 } >
45
45
< FormLabel component = "legend" > { trans . __ ( 'Send To' ) } </ FormLabel >
46
- { notification . send_to . map ( ( email , idx ) => (
46
+ { notificationsSettings . send_to . map ( ( email , idx ) => (
47
47
< NotificationsSettingsItem
48
48
key = { idx }
49
49
label = { trans . __ ( `Send To ${ idx + 1 } ` ) }
@@ -53,7 +53,7 @@ export const NotificationsSettingsDetails: React.FC<
53
53
< FormLabel component = "legend" >
54
54
{ trans . __ ( 'Notification Events' ) }
55
55
</ FormLabel >
56
- { notification . events . map ( ( event , idx ) => (
56
+ { notificationsSettings . events . map ( ( event , idx ) => (
57
57
< NotificationsSettingsItem
58
58
key = { idx }
59
59
label = { trans . __ ( `Event ${ idx + 1 } ` ) }
@@ -62,7 +62,7 @@ export const NotificationsSettingsDetails: React.FC<
62
62
) ) }
63
63
< NotificationsSettingsItem
64
64
label = { trans . __ ( 'Include Output' ) }
65
- value = { notification . include_output }
65
+ value = { notificationsSettings . include_output }
66
66
/>
67
67
</ Stack >
68
68
</ CardContent >
0 commit comments