@@ -9,49 +9,29 @@ import * as selectors from './selectors';
9
9
10
10
import styles from './Notifications.module.css' ;
11
11
12
- const EDITION_URL = 'https://doc.rust-lang.org/edition-guide/' ;
13
- const SURVEY_URL = 'https://blog.rust-lang.org/2021/12/08/survey-launch.html' ;
12
+ const MONACO_EDITOR_URL = 'https://microsoft.github.io/monaco-editor/' ;
14
13
15
14
const Notifications : React . SFC = ( ) => {
16
15
return (
17
16
< Portal >
18
17
< div className = { styles . container } >
19
- < Rust2021IsDefaultNotification />
20
- < RustSurvey2021Notification />
18
+ < MonacoEditorAvailableNotification />
21
19
</ div >
22
20
</ Portal >
23
21
) ;
24
22
} ;
25
23
26
- const Rust2021IsDefaultNotification : React . SFC = ( ) => {
27
- const showRust2021IsDefault = useSelector ( selectors . showRust2021IsDefaultSelector ) ;
24
+ const MonacoEditorAvailableNotification : React . SFC = ( ) => {
25
+ const monicoEditorAvailable = useSelector ( selectors . showMonicoEditorAvailableSelector ) ;
28
26
29
27
const dispatch = useDispatch ( ) ;
30
- const seenRust2021IsDefault = useCallback ( ( ) => dispatch ( actions . seenRust2021IsDefault ( ) ) , [ dispatch ] ) ;
28
+ const seenMonicoEditorAvailable = useCallback ( ( ) => dispatch ( actions . seenMonicoEditorAvailable ( ) ) , [ dispatch ] ) ;
31
29
32
- return showRust2021IsDefault && (
33
- < Notification onClose = { seenRust2021IsDefault } >
34
- As of Rust 1.56, the default edition of Rust is now Rust
35
- 2021. Learn more about editions in the < a href = { EDITION_URL } > Edition Guide</ a > .
36
- To specify which edition to use, use the advanced compilation options menu.
37
- </ Notification >
38
- ) ;
39
- } ;
40
-
41
-
42
- const RustSurvey2021Notification : React . SFC = ( ) => {
43
- const showRustSurvey2021 = useSelector ( selectors . showRustSurvey2021Selector ) ;
44
-
45
- const dispatch = useDispatch ( ) ;
46
- const seenRustSurvey2021 = useCallback ( ( ) => dispatch ( actions . seenRustSurvey2021 ( ) ) , [ dispatch ] ) ;
47
-
48
- return showRustSurvey2021 && (
49
- < Notification onClose = { seenRustSurvey2021 } >
50
- Please help us take a look at who the Rust community is
51
- composed of, how the Rust project is doing, and how we can
52
- improve the Rust programming experience by completing the < a
53
- href = { SURVEY_URL } > 2021 State of Rust Survey</ a > . Whether or
54
- not you use Rust today, we want to know your opinions.
30
+ return monicoEditorAvailable && (
31
+ < Notification onClose = { seenMonicoEditorAvailable } >
32
+ The < a href = { MONACO_EDITOR_URL } > Monaco Editor</ a > , the code editor
33
+ that powers VS Code, is now available in the playground. Choose
34
+ your preferred editor from the Config menu.
55
35
</ Notification >
56
36
) ;
57
37
} ;
0 commit comments