@@ -3,36 +3,36 @@ import { Portal } from 'react-portal';
33
44import { Close } from './Icon' ;
55import { useAppDispatch , useAppSelector } from './hooks' ;
6- import { seenRustSurvey2022 } from './reducers/notifications' ;
6+ import { seenRustSurvey2023 } from './reducers/notifications' ;
77import { allowLongRun , wsExecuteKillCurrent } from './reducers/output/execute' ;
88import * as selectors from './selectors' ;
99
1010import styles from './Notifications.module.css' ;
1111
12- const SURVEY_URL = 'https://blog.rust-lang.org/2022 /12/05 /survey-launch.html' ;
12+ const SURVEY_URL = 'https://blog.rust-lang.org/2023 /12/18 /survey-launch.html' ;
1313
1414const Notifications : React . FC = ( ) => {
1515 return (
1616 < Portal >
1717 < div className = { styles . container } >
18- < RustSurvey2022Notification />
18+ < RustSurvey2023Notification />
1919 < ExcessiveExecutionNotification />
2020 </ div >
2121 </ Portal >
2222 ) ;
2323} ;
2424
25- const RustSurvey2022Notification : React . FC = ( ) => {
26- const showRustSurvey2022 = useAppSelector ( selectors . showRustSurvey2022Selector ) ;
25+ const RustSurvey2023Notification : React . FC = ( ) => {
26+ const showIt = useAppSelector ( selectors . showRustSurvey2023Selector ) ;
2727
2828 const dispatch = useAppDispatch ( ) ;
29- const seenRustSurvey2021 = useCallback ( ( ) => dispatch ( seenRustSurvey2022 ( ) ) , [ dispatch ] ) ;
29+ const seenIt = useCallback ( ( ) => dispatch ( seenRustSurvey2023 ( ) ) , [ dispatch ] ) ;
3030
31- return showRustSurvey2022 ? (
32- < Notification onClose = { seenRustSurvey2021 } >
31+ return showIt ? (
32+ < Notification onClose = { seenIt } >
3333 Please help us take a look at who the Rust community is composed of, how the Rust project is
3434 doing, and how we can improve the Rust programming experience by completing the{ ' ' }
35- < a href = { SURVEY_URL } > 2022 State of Rust Survey</ a > . Whether or not you use Rust today, we want
35+ < a href = { SURVEY_URL } > 2023 State of Rust Survey</ a > . Whether or not you use Rust today, we want
3636 to know your opinions.
3737 </ Notification >
3838 ) : null ;
0 commit comments