@truedat/core 6.5.0 → 6.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/core",
|
|
3
|
-
"version": "6.5.
|
|
3
|
+
"version": "6.5.2",
|
|
4
4
|
"description": "Truedat Web Core",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@testing-library/react": "^12.0.0",
|
|
37
37
|
"@testing-library/react-hooks": "^8.0.1",
|
|
38
38
|
"@testing-library/user-event": "^13.2.1",
|
|
39
|
-
"@truedat/test": "6.5.
|
|
39
|
+
"@truedat/test": "6.5.2",
|
|
40
40
|
"babel-jest": "^28.1.0",
|
|
41
41
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
42
42
|
"babel-plugin-lodash": "^3.3.4",
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"react-dom": ">= 16.8.6 < 17",
|
|
119
119
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "4e35f7cfa7562cdb15da70e2c74ceeaa458ad741"
|
|
122
122
|
}
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
import Submenu from "./Submenu";
|
|
12
12
|
|
|
13
13
|
const items = [
|
|
14
|
+
{ name: "my_grants", routes: [MY_GRANTS], groups: ["grants"] },
|
|
15
|
+
{ name: "grants", routes: [GRANTS], groups: ["grants_visualization"] },
|
|
14
16
|
{
|
|
15
17
|
name: "structures_grant_requests",
|
|
16
18
|
routes: [STRUCTURES_GRANT_REQUEST],
|
|
17
19
|
groups: ["grants"],
|
|
18
20
|
},
|
|
19
|
-
{ name: "my_grants", routes: [MY_GRANTS], groups: ["grants"] },
|
|
20
|
-
{ name: "grants", routes: [GRANTS], groups: ["grants"] },
|
|
21
21
|
{
|
|
22
22
|
name: "my_grant_requests",
|
|
23
23
|
routes: [MY_GRANT_REQUESTS],
|
|
@@ -36,7 +36,11 @@ const items = [
|
|
|
36
36
|
];
|
|
37
37
|
|
|
38
38
|
export const GrantMenu = () => {
|
|
39
|
-
const authorized = useAuthorized([
|
|
39
|
+
const authorized = useAuthorized([
|
|
40
|
+
"grants",
|
|
41
|
+
"grants_management",
|
|
42
|
+
"grants_visualization",
|
|
43
|
+
]);
|
|
40
44
|
return authorized ? <Submenu items={items} icon="key" name="grants" /> : null;
|
|
41
45
|
};
|
|
42
46
|
|
|
@@ -9,27 +9,27 @@ exports[`<GrantMenu /> matches the latest snapshot 1`] = `
|
|
|
9
9
|
"groups": [
|
|
10
10
|
"grants",
|
|
11
11
|
],
|
|
12
|
-
"name": "
|
|
12
|
+
"name": "my_grants",
|
|
13
13
|
"routes": [
|
|
14
|
-
"/
|
|
14
|
+
"/myGrants",
|
|
15
15
|
],
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"groups": [
|
|
19
|
-
"
|
|
19
|
+
"grants_visualization",
|
|
20
20
|
],
|
|
21
|
-
"name": "
|
|
21
|
+
"name": "grants",
|
|
22
22
|
"routes": [
|
|
23
|
-
"/
|
|
23
|
+
"/grants",
|
|
24
24
|
],
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"groups": [
|
|
28
28
|
"grants",
|
|
29
29
|
],
|
|
30
|
-
"name": "
|
|
30
|
+
"name": "structures_grant_requests",
|
|
31
31
|
"routes": [
|
|
32
|
-
"/
|
|
32
|
+
"/structuresGrantRequests",
|
|
33
33
|
],
|
|
34
34
|
},
|
|
35
35
|
{
|
|
@@ -143,7 +143,7 @@ exports[`<SideMenu /> matches the latest snapshot 1`] = `
|
|
|
143
143
|
class="active item selectable"
|
|
144
144
|
>
|
|
145
145
|
<a
|
|
146
|
-
href="/
|
|
146
|
+
href="/myGrants"
|
|
147
147
|
>
|
|
148
148
|
<i
|
|
149
149
|
aria-hidden="true"
|
|
@@ -154,12 +154,6 @@ exports[`<SideMenu /> matches the latest snapshot 1`] = `
|
|
|
154
154
|
<div
|
|
155
155
|
class="menu"
|
|
156
156
|
>
|
|
157
|
-
<a
|
|
158
|
-
class="link item"
|
|
159
|
-
href="/structuresGrantRequests"
|
|
160
|
-
>
|
|
161
|
-
Structures grant requests
|
|
162
|
-
</a>
|
|
163
157
|
<a
|
|
164
158
|
class="link item"
|
|
165
159
|
href="/myGrants"
|
|
@@ -172,6 +166,12 @@ exports[`<SideMenu /> matches the latest snapshot 1`] = `
|
|
|
172
166
|
>
|
|
173
167
|
Grants
|
|
174
168
|
</a>
|
|
169
|
+
<a
|
|
170
|
+
class="link item"
|
|
171
|
+
href="/structuresGrantRequests"
|
|
172
|
+
>
|
|
173
|
+
Structures grant requests
|
|
174
|
+
</a>
|
|
175
175
|
<a
|
|
176
176
|
class="link item"
|
|
177
177
|
href="/myGrantRequests"
|