From 04f87defdaae60262906998e20330e49d837aecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Holeczek?= Date: Sat, 29 May 2021 12:13:32 +0200 Subject: [PATCH] feat(CSidebarNav): add custom scrollbar --- package.json | 5 ++-- src/components/AppSidebar.js | 7 +++++- yarn.lock | 47 +++++++++++++++++++++++++++++++++++- 3 files changed, 55 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 48c1e41..46bea0a 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ }, "dependencies": { "@coreui/chartjs": "next", - "@coreui/coreui": "4.0.0-rc.0", + "@coreui/coreui": "next", "@coreui/icons": "^2.0.1", "@coreui/icons-react": "^1.1.0", "@coreui/react": "4.0.0-alpha.1", @@ -44,7 +44,8 @@ "react-dom": "^17.0.2", "react-redux": "^7.2.3", "react-router-dom": "^5.2.0", - "redux": "4.0.5" + "redux": "4.0.5", + "simplebar-react": "^2.3.3" }, "devDependencies": { "auto-changelog": "~2.2.1", diff --git a/src/components/AppSidebar.js b/src/components/AppSidebar.js index 120bbeb..c48a061 100644 --- a/src/components/AppSidebar.js +++ b/src/components/AppSidebar.js @@ -11,6 +11,9 @@ import { import CIcon from '@coreui/icons-react' +import SimpleBar from 'simplebar-react' +import 'simplebar/dist/simplebar.min.css' + // sidebar nav config import navigation from '../_nav' @@ -35,7 +38,9 @@ const AppSidebar = () => { - + + +