@digitaldefiance/express-suite-react-components 2.9.5 → 2.9.7
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 +2 -2
- package/src/components/TopMenu.tsx +18 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digitaldefiance/express-suite-react-components",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.7",
|
|
4
4
|
"homepage": "https://github.com/Digital-Defiance/react-components",
|
|
5
5
|
"description": "React MUI components for Digital Defiance Express Suite",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@digitaldefiance/i18n-lib": "3.8.5",
|
|
34
|
-
"@digitaldefiance/suite-core-lib": "3.6.
|
|
34
|
+
"@digitaldefiance/suite-core-lib": "3.6.12",
|
|
35
35
|
"@emotion/react": "^11.14.0",
|
|
36
36
|
"@emotion/styled": "^11.14.0",
|
|
37
37
|
"@mui/icons-material": "^7.0.2",
|
|
@@ -89,7 +89,12 @@ export const TopMenu: FC<TopMenuProps> = ({ Logo, additionalMenus }) => {
|
|
|
89
89
|
<Box sx={{ display: 'flex', alignItems: 'center' }}>
|
|
90
90
|
{isAuthenticated ? (
|
|
91
91
|
<>
|
|
92
|
-
<Button
|
|
92
|
+
<Button
|
|
93
|
+
color="inherit"
|
|
94
|
+
// @ts-expect-error - MUI Button with react-router Link has type incompatibility
|
|
95
|
+
component={Link}
|
|
96
|
+
to="/dashboard"
|
|
97
|
+
>
|
|
93
98
|
{tComponent<SuiteCoreStringKey>(
|
|
94
99
|
SuiteCoreComponentId,
|
|
95
100
|
SuiteCoreStringKey.Common_Dashboard
|
|
@@ -109,13 +114,23 @@ export const TopMenu: FC<TopMenuProps> = ({ Logo, additionalMenus }) => {
|
|
|
109
114
|
</>
|
|
110
115
|
) : (
|
|
111
116
|
<>
|
|
112
|
-
<Button
|
|
117
|
+
<Button
|
|
118
|
+
color="inherit"
|
|
119
|
+
// @ts-expect-error - MUI Button with react-router Link has type incompatibility
|
|
120
|
+
component={Link}
|
|
121
|
+
to="/login"
|
|
122
|
+
>
|
|
113
123
|
{tComponent<SuiteCoreStringKey>(
|
|
114
124
|
SuiteCoreComponentId,
|
|
115
125
|
SuiteCoreStringKey.Login_LoginButton
|
|
116
126
|
)}
|
|
117
127
|
</Button>
|
|
118
|
-
<Button
|
|
128
|
+
<Button
|
|
129
|
+
color="inherit"
|
|
130
|
+
// @ts-expect-error - MUI Button with react-router Link has type incompatibility
|
|
131
|
+
component={Link}
|
|
132
|
+
to="/register"
|
|
133
|
+
>
|
|
119
134
|
{tComponent<SuiteCoreStringKey>(
|
|
120
135
|
SuiteCoreComponentId,
|
|
121
136
|
SuiteCoreStringKey.RegisterButton
|