@@ -9,29 +9,31 @@ import * as selectors from './selectors';
99
1010import styles from './Notifications.module.css' ;
1111
12- const MONACO_EDITOR_URL = 'https://microsoft.github.io/monaco-editor/ ' ;
12+ const SURVEY_URL = 'https://blog.rust-lang.org/2022/12/05/survey-launch.html ' ;
1313
1414const Notifications : React . FC = ( ) => {
1515 return (
1616 < Portal >
1717 < div className = { styles . container } >
18- < MonacoEditorAvailableNotification />
18+ < RustSurvey2022Notification />
1919 </ div >
2020 </ Portal >
2121 ) ;
2222} ;
2323
24- const MonacoEditorAvailableNotification : React . FC = ( ) => {
25- const monacoEditorAvailable = useSelector ( selectors . showMonacoEditorAvailableSelector ) ;
24+ const RustSurvey2022Notification : React . SFC = ( ) => {
25+ const showRustSurvey2022 = useSelector ( selectors . showRustSurvey2022Selector ) ;
2626
2727 const dispatch = useDispatch ( ) ;
28- const seenMonacoEditorAvailable = useCallback ( ( ) => dispatch ( actions . seenMonacoEditorAvailable ( ) ) , [ dispatch ] ) ;
29-
30- return monacoEditorAvailable ? (
31- < Notification onClose = { seenMonacoEditorAvailable } >
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.
28+ const seenRustSurvey2021 = useCallback ( ( ) => dispatch ( actions . seenRustSurvey2022 ( ) ) , [ dispatch ] ) ;
29+
30+ return showRustSurvey2022 ? (
31+ < Notification onClose = { seenRustSurvey2021 } >
32+ Please help us take a look at who the Rust community is
33+ composed of, how the Rust project is doing, and how we can
34+ improve the Rust programming experience by completing the < a
35+ href = { SURVEY_URL } > 2022 State of Rust Survey</ a > . Whether or
36+ not you use Rust today, we want to know your opinions.
3537 </ Notification >
3638 ) : null ;
3739} ;
0 commit comments