From 612db95ec47fdd9e30f9cb33b99df3af5a972542 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Fri, 6 Jan 2023 23:22:48 +0100 Subject: [PATCH] [core] Close 2022 developer survey --- docs/notifications.json | 7 +-- .../src/components/banner/AppHeaderBanner.tsx | 50 ++++++++++--------- docs/src/featureToggle.js | 2 +- .../modules/components/AppTableOfContents.js | 2 +- 4 files changed, 30 insertions(+), 31 deletions(-) diff --git a/docs/notifications.json b/docs/notifications.json index f32b2c74f715b3..28410573aee50a 100644 --- a/docs/notifications.json +++ b/docs/notifications.json @@ -10,13 +10,8 @@ "text": "Migrate to the latest version for improved DX, customizability, and API consistency. Check out the blog post for details." }, { - "id": 71, + "id": 72, "title": "A major update is coming for MUI Xβ€”and you can get involved", "text": "Check out the blog post for details, and let us know what you want to see in MUI X v6." - }, - { - "id": 72, - "title": "The MUI Developer survey is live!", - "text": "Please take a few minutes to complete the survey and help us shape the roadmap for 2023." } ] diff --git a/docs/src/components/banner/AppHeaderBanner.tsx b/docs/src/components/banner/AppHeaderBanner.tsx index 45c18eadbac65f..19148b11cfde42 100644 --- a/docs/src/components/banner/AppHeaderBanner.tsx +++ b/docs/src/components/banner/AppHeaderBanner.tsx @@ -4,8 +4,9 @@ import Link from 'docs/src/modules/components/Link'; import ROUTES from 'docs/src/route'; import FEATURE_TOGGLE from 'docs/src/featureToggle'; -const getSurveyMessage = () => ( - +function getSurveyMessage() { + return ( + πŸš€ Influence the future of MUI!  Please take a few minutes for the  ( MUI Developer survey 2022 β†’ -); + ); +} -const getDefaultHiringMessage = () => ( - - πŸš€  We're hiring a Designer, Full-stack Engineer, React Support Engineer, and - more!   - - Check the careers page β†’ - - -); +function getDefaultHiringMessage() { + return ( + + πŸš€  We're hiring a Designer, Full-stack Engineer, React Support Engineer, and + more!   + + Check the careers page β†’ + + + ); +} export default function AppHeaderBanner() { - const showSurveyMessage = true; + const showSurveyMessage = false; const bannerMessage = showSurveyMessage ? getSurveyMessage() : getDefaultHiringMessage(); return FEATURE_TOGGLE.enable_website_banner ? ( diff --git a/docs/src/featureToggle.js b/docs/src/featureToggle.js index 665906ece68dbe..a94ee82968e6c8 100644 --- a/docs/src/featureToggle.js +++ b/docs/src/featureToggle.js @@ -1,6 +1,6 @@ // need to use commonjs export so that @mui/markdown can use module.exports = { - enable_website_banner: true, + enable_website_banner: false, enable_toc_banner: true, enable_docsnav_banner: false, }; diff --git a/docs/src/modules/components/AppTableOfContents.js b/docs/src/modules/components/AppTableOfContents.js index cf206710986ae1..f25683958390e0 100644 --- a/docs/src/modules/components/AppTableOfContents.js +++ b/docs/src/modules/components/AppTableOfContents.js @@ -127,7 +127,7 @@ const shouldShowJobAd = () => { export default function AppTableOfContents(props) { const { toc } = props; const t = useTranslate(); - const showSurveyBanner = true; + const showSurveyBanner = false; const showAddJob = shouldShowJobAd() && !showSurveyBanner; const items = React.useMemo(() => flatten(toc), [toc]);