Skip to content

Commit

Permalink
feat: test
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe committed Jul 24, 2024
1 parent 854a3ad commit d4c5195
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/public/chrome/ui/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,14 @@ export function Header({
const appId = useObservable(application.currentAppId$, '');
const [isNavOpen, setIsNavOpen] = useState(false);
const sidecarConfig = useObservable(observables.sidecarConfig$, undefined);
const toggleCollapsibleNavRef = createRef<HTMLButtonElement & { euiAnimate: () => void }>();

/**
* This is a workaround on 2.16 to hide the navigation items within left navigation
* when user is in homepage with workspace enabled + new navigation enabled
*/
const shouldHideExpandIcon =
navGroupEnabled && appId === 'home' && application.capabilities.workspaces.enabled;
navGroupEnabled && appId === 'home' && application.capabilities?.workspaces?.enabled;

const sidecarPaddingStyle = useMemo(() => {
return getOsdSidecarPaddingStyle(sidecarConfig);
Expand All @@ -149,15 +150,12 @@ export function Header({
return <LoadingIndicator loadingCount$={observables.loadingCount$} showAsBar />;
}

const toggleCollapsibleNavRef = createRef<HTMLButtonElement & { euiAnimate: () => void }>();
const navId = htmlIdGenerator()();
const className = classnames('hide-for-sharing', 'headerGlobalNav');
const { useExpandedHeader = true } = branding;

const expandedHeaderColorScheme: EuiHeaderProps['theme'] = 'dark';

// a comment

return (
<>
<header className={className} data-test-subj="headerGlobalNav">
Expand Down

0 comments on commit d4c5195

Please sign in to comment.