Skip to content

Commit 28e0037

Browse files
committed
Fixed chart.js peer dependency #348
1 parent 98d616a commit 28e0037

File tree

5 files changed

+15
-198
lines changed

5 files changed

+15
-198
lines changed

packages/rmw-shell/cra-template-rmw/template/src/config/config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ import themes from './themes'
55
import parseLanguages from 'base-shell/lib/utils/locale'
66
import grants from './grants'
77
import Loading from 'material-ui-shell/lib/components/Loading/Loading'
8-
import { defaultUserData, isGranted } from 'rmw-shell/lib/utils/auth'
8+
import {
9+
defaultUserData,
10+
isGranted,
11+
isAnyGranted,
12+
} from 'rmw-shell/lib/utils/auth'
913
import { getDefaultRoutes } from './getDefaultRoutes'
1014

1115
const config = {
@@ -105,6 +109,7 @@ const config = {
105109
notificationsDisabled: notifcationsDisabledSnap.val(),
106110
isAdmin: !!isAdminSnap.val(),
107111
isGranted,
112+
isAnyGranted,
108113
})
109114

110115
update(ref(db, `users/${user.uid}`), {

packages/rmw-shell/cra-template-rmw/template/src/config/getDefaultRoutes.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const CreateChat = lazy(() => import('rmw-shell/lib/pages/CreateChat'))
1313
const GroupChat = lazy(() => import('rmw-shell/lib/pages/GroupChat'))
1414
const EditMembers = lazy(() => import('rmw-shell/lib/pages/EditMembers'))
1515
const EditAdmins = lazy(() => import('rmw-shell/lib/pages/EditAdmins'))
16+
const PageNotFound = lazy(() => import('../pages/PageNotFound'))
1617

1718
const getDefaultRoutes = (appConfig) => {
1819
return [
@@ -164,7 +165,11 @@ const getDefaultRoutes = (appConfig) => {
164165
{
165166
path: '*',
166167

167-
element: appConfig?.pages?.PageNotFound,
168+
element: (
169+
<AuthorizedRoute>
170+
<PageNotFound />
171+
</AuthorizedRoute>
172+
),
168173
},
169174
]
170175
}

packages/rmw-shell/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/rmw-shell/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rmw-shell",
3-
"version": "11.0.9",
3+
"version": "11.0.10",
44
"description": "React template with Material UI, Firebase, routing...",
55
"main": "lib/index.js",
66
"module": "es/index.js",
@@ -25,7 +25,7 @@
2525
"jss-rtl": "0.x",
2626
"@formatjs/intl-relativetimeformat": "^7.0.0 || ^8.0.0 || ^9.0.0",
2727
"base-shell": "2.x",
28-
"chart.js": "2.x",
28+
"chart.js": "3.x",
2929
"final-form": "4.x",
3030
"final-form-arrays": "3.x",
3131
"firebase": "9.x",

packages/rmw-shell/src/components/MenuHeader/MenuHeader.js

Lines changed: 0 additions & 193 deletions
This file was deleted.

0 commit comments

Comments
 (0)