grep-components 2.1.0-GREPF-1810.2 → 2.1.0-GREPF-2281.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.
@@ -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
- isProd: boolean;
5
+ environmentTitle: string;
6
6
  username: string;
7
7
  currentPath: string;
8
8
  appTitle: string;
package/dist/index.js CHANGED
@@ -16479,7 +16479,7 @@ const MobileAppBar = ({ userMenuItems, menuItems, }) => {
16479
16479
  userMenuItems.length > index + 1 && React.createElement(Divider$1, null)))))))));
16480
16480
  };
16481
16481
 
16482
- const AppBar = ({ username, currentPath, isProd, appTitle, userMenuItems, menuItems, userRole, colors, }) => {
16482
+ const AppBar = ({ username, currentPath, environmentTitle, appTitle, userMenuItems, menuItems, userRole, colors, }) => {
16483
16483
  const [userMenuAnchor, setUserMenuAnchor] = React.useState(null);
16484
16484
  const _handleIconButtonClick = (event) => {
16485
16485
  event.preventDefault();
@@ -16500,7 +16500,7 @@ const AppBar = ({ username, currentPath, isProd, appTitle, userMenuItems, menuIt
16500
16500
  React.createElement(ToolbarLeft, null,
16501
16501
  React.createElement(ToolbarTitle, { to: '/' },
16502
16502
  appTitle,
16503
- !isProd && (React.createElement(EnvironmentTitle, null, process.env.REACT_APP_HOST)))),
16503
+ !(environmentTitle === 'PROD') && (React.createElement(EnvironmentTitle, null, environmentTitle)))),
16504
16504
  React.createElement(ToolbarRight, null,
16505
16505
  React.createElement(Button$1, { "aria-controls": userMenuAnchor ? 'basic-menu' : undefined, "aria-haspopup": "true", "aria-expanded": userMenuAnchor ? 'true' : undefined, onClick: _handleIconButtonClick },
16506
16506
  React.createElement(AccountCircle, { color: "primary", fontSize: "large" }),