From 2987fa3c30ced375538a354946ea4fffda4235f5 Mon Sep 17 00:00:00 2001 From: ronronscelestes Date: Fri, 3 Sep 2021 16:55:21 +0200 Subject: [PATCH 1/2] Main nav notifications --- .../admin/admin/src/components/LeftMenu/index.js | 7 ++++++- packages/core/admin/package.json | 4 ++-- yarn.lock | 14 ++++++++++++++ 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/packages/core/admin/admin/src/components/LeftMenu/index.js b/packages/core/admin/admin/src/components/LeftMenu/index.js index 928358008f..bc01535872 100644 --- a/packages/core/admin/admin/src/components/LeftMenu/index.js +++ b/packages/core/admin/admin/src/components/LeftMenu/index.js @@ -53,7 +53,12 @@ const LeftMenu = ({ generalSectionLinks, pluginsSectionLinks }) => { {generalSectionLinks.length > 0 ? ( {generalSectionLinks.map(link => ( - }> + } + > ))} diff --git a/packages/core/admin/package.json b/packages/core/admin/package.json index 3882b51c7d..6c250923a4 100644 --- a/packages/core/admin/package.json +++ b/packages/core/admin/package.json @@ -40,8 +40,8 @@ "@fortawesome/react-fontawesome": "^0.1.14", "@strapi/babel-plugin-switch-ee-ce": "1.0.0", "@strapi/helper-plugin": "3.6.7", - "@strapi/icons": "0.0.1-alpha.19", - "@strapi/parts": "0.0.1-alpha.19", + "@strapi/icons": "0.0.1-alpha.21", + "@strapi/parts": "0.0.1-alpha.21", "@strapi/utils": "3.6.7", "axios": "^0.21.1", "babel-loader": "8.2.2", diff --git a/yarn.lock b/yarn.lock index f1fb5f6d44..6a26017d2f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4920,6 +4920,11 @@ resolved "https://registry.yarnpkg.com/@strapi/icons/-/icons-0.0.1-alpha.19.tgz#88153c77ff02deccfedffb1dc2e7f0f4cc2f830a" integrity sha512-nFpT3Gsp6nQ4+FNd9DkbqhMZrX9KJbWXLQ6XFHhtYdNVA3n5vr2/0MFaqWrvYwxpnxMs3gn1xZOjG4+VzLBwbA== +"@strapi/icons@0.0.1-alpha.21": + version "0.0.1-alpha.21" + resolved "https://registry.yarnpkg.com/@strapi/icons/-/icons-0.0.1-alpha.21.tgz#d509974c6a2ca5ce977a000d7859822221a9a14b" + integrity sha512-9gfvsq4uPJd6VIA5Cs9BFz7aPqeMLEq9PJp+gDF6gbS56qSzHhG/Vo1BjJcukuI2oSLpj4zMJHI/yw0NnnZs7w== + "@strapi/parts@0.0.1-alpha.19": version "0.0.1-alpha.19" resolved "https://registry.yarnpkg.com/@strapi/parts/-/parts-0.0.1-alpha.19.tgz#e4c64c1f63256ab21f4ad643f684738a283c0efc" @@ -4929,6 +4934,15 @@ compute-scroll-into-view "^1.0.17" prop-types "^15.7.2" +"@strapi/parts@0.0.1-alpha.21": + version "0.0.1-alpha.21" + resolved "https://registry.yarnpkg.com/@strapi/parts/-/parts-0.0.1-alpha.21.tgz#f62edd0c503b438fd2b98419e97405cada5b0e60" + integrity sha512-Z6pArphkzk4+HkL1Tq3SsayGk9SEjANFd9SVGUStiohV6nWK/ri0562cJs0QIgBFwzGWjtuhIrOgTYe00xKSwg== + dependencies: + "@internationalized/number" "^3.0.2" + compute-scroll-into-view "^1.0.17" + prop-types "^15.7.2" + "@stylelint/postcss-css-in-js@^0.37.2": version "0.37.2" resolved "https://registry.yarnpkg.com/@stylelint/postcss-css-in-js/-/postcss-css-in-js-0.37.2.tgz#7e5a84ad181f4234a2480803422a47b8749af3d2" From 3162e3b6faa4cd85de660506767725f0c6cc27d3 Mon Sep 17 00:00:00 2001 From: ronronscelestes Date: Fri, 3 Sep 2021 16:59:54 +0200 Subject: [PATCH 2/2] at least 1 notification to show the badge --- packages/core/admin/admin/src/components/LeftMenu/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/admin/admin/src/components/LeftMenu/index.js b/packages/core/admin/admin/src/components/LeftMenu/index.js index bc01535872..3cef803f2b 100644 --- a/packages/core/admin/admin/src/components/LeftMenu/index.js +++ b/packages/core/admin/admin/src/components/LeftMenu/index.js @@ -54,7 +54,7 @@ const LeftMenu = ({ generalSectionLinks, pluginsSectionLinks }) => { {generalSectionLinks.map(link => ( 0 && link.notificationsCount} to={link.to} key={link.to} icon={}