@@ -9,30 +9,29 @@ import * as selectors from './selectors';
99
1010import styles from './Notifications.module.css' ;
1111
12- const SURVEY_URL = 'https://blog .rust-lang.org/2020/09/10/survey-launch.html ' ;
12+ const EDITION_URL = 'https://doc .rust-lang.org/edition-guide/ ' ;
1313
1414const Notifications : React . SFC = ( ) => {
1515 return (
1616 < Portal >
1717 < div className = { styles . container } >
18- < Rust2020SurveyNotification />
18+ < Rust2021IsDefaultNotification />
1919 </ div >
2020 </ Portal >
2121 ) ;
2222} ;
2323
24- const Rust2020SurveyNotification : React . SFC = ( ) => {
25- const showRust2020Survey = useSelector ( selectors . showRustSurvey2020Selector ) ;
24+ const Rust2021IsDefaultNotification : React . SFC = ( ) => {
25+ const showRust2021IsDefault = useSelector ( selectors . showRust2021IsDefaultSelector ) ;
2626
2727 const dispatch = useDispatch ( ) ;
28- const seenRustSurvey2020 = useCallback ( ( ) => dispatch ( actions . seenRustSurvey2020 ( ) ) , [ dispatch ] ) ;
29-
30- return showRust2020Survey && (
31- < Notification onClose = { seenRustSurvey2020 } >
32- We want to know your opinions! Your responses to
33- the < a href = { SURVEY_URL } > 2020 State of Rust Survey</ a > will
34- help the project understand its strengths and weaknesses
35- and establish development priorities for the future!
28+ const seenRust2021IsDefault = useCallback ( ( ) => dispatch ( actions . seenRust2021IsDefault ( ) ) , [ dispatch ] ) ;
29+
30+ return showRust2021IsDefault && (
31+ < Notification onClose = { seenRust2021IsDefault } >
32+ As of Rust 1.56, the default edition of Rust is now Rust
33+ 2021. Learn more about editions in the < a href = { EDITION_URL } > Edition Guide</ a > .
34+ To specify which edition to use, use the advanced compilation options menu.
3635 </ Notification >
3736 ) ;
3837} ;
0 commit comments