File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,11 @@ export function NotificationsPicker(
19
19
if ( ! props . notificationEvents . length ) {
20
20
return null ;
21
21
}
22
- const trans = useTranslator ( 'jupyterlab' ) ;
23
- const [ selectedEvent , setSelectedEvent ] = useState < string > ( '' ) ;
22
+
23
+ const [ selectValue , setSelectValue ] = useState < string > ( '' ) ;
24
+
24
25
const { notificationEvents, id } = props ;
26
+ const trans = useTranslator ( 'jupyterlab' ) ;
25
27
const labelId = `${ id } -label` ;
26
28
const label = trans . __ ( 'Notification Events' ) ;
27
29
@@ -32,7 +34,7 @@ export function NotificationsPicker(
32
34
} ;
33
35
34
36
const handleSelectChange = ( e : SelectChangeEvent ) => {
35
- setSelectedEvent ( e . target . value as string ) ;
37
+ setSelectValue ( e . target . value as string ) ;
36
38
} ;
37
39
38
40
return (
@@ -52,7 +54,7 @@ export function NotificationsPicker(
52
54
< Select
53
55
labelId = { labelId }
54
56
id = { id }
55
- value = { selectedEvent }
57
+ value = { selectValue }
56
58
label = { label }
57
59
onChange = { handleSelectChange }
58
60
>
You can’t perform that action at this time.
0 commit comments