grep-components 2.2.0-GREPF-1810.2 → 2.2.0-GREPF-2281.1
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.
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { IAuthorizedPage, UserMenuItem, v0colors } from './types';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
type AppBarProps = {
|
|
5
|
-
|
|
5
|
+
environmentTitle: string;
|
|
6
6
|
username: string;
|
|
7
7
|
currentPath: string;
|
|
8
8
|
appTitle: string;
|
package/dist/index.js
CHANGED
|
@@ -16608,7 +16608,7 @@ const MobileAppBar = ({ userMenuItems, menuItems, }) => {
|
|
|
16608
16608
|
userMenuItems.length > index + 1 && React.createElement(Divider$1, null)))))))));
|
|
16609
16609
|
};
|
|
16610
16610
|
|
|
16611
|
-
const AppBar = ({ username, currentPath,
|
|
16611
|
+
const AppBar = ({ username, currentPath, environmentTitle, appTitle, userMenuItems, menuItems, userRole, colors, }) => {
|
|
16612
16612
|
const [userMenuAnchor, setUserMenuAnchor] = React.useState(null);
|
|
16613
16613
|
const _handleIconButtonClick = (event) => {
|
|
16614
16614
|
event.preventDefault();
|
|
@@ -16629,7 +16629,7 @@ const AppBar = ({ username, currentPath, isProd, appTitle, userMenuItems, menuIt
|
|
|
16629
16629
|
React.createElement(ToolbarLeft, null,
|
|
16630
16630
|
React.createElement(ToolbarTitle, { to: '/' },
|
|
16631
16631
|
appTitle,
|
|
16632
|
-
!
|
|
16632
|
+
!(environmentTitle === 'PROD') && (React.createElement(EnvironmentTitle, null, environmentTitle)))),
|
|
16633
16633
|
React.createElement(ToolbarRight, null,
|
|
16634
16634
|
React.createElement(Button$1, { "aria-controls": userMenuAnchor ? 'basic-menu' : undefined, "aria-haspopup": "true", "aria-expanded": userMenuAnchor ? 'true' : undefined, onClick: _handleIconButtonClick },
|
|
16635
16635
|
React.createElement(AccountCircle, { color: "primary", fontSize: "large" }),
|