Skip to content

Commit

Permalink
feat: remove useless change
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 29, 2024
1 parent 8798bf7 commit d43fdac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,7 @@ export function CollapsibleNavGroupEnabled({
navLinks={navLinks}
navigateToApp={navigateToApp}
logos={logos}
onClickBack={() => {
setCurrentNavGroup(undefined);
}}
onClickBack={() => setCurrentNavGroup(undefined)}
currentNavGroup={currentNavGroup}
shouldShrinkNavigation={!isNavOpen}
onClickShrink={closeNav}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ import React from 'react';
import { render } from '@testing-library/react';
import { ChromeNavLink } from '../../nav_links';
import { ChromeRegistrationNavLink } from '../../nav_group';
import { coreMock, httpServiceMock } from '../../../mocks';
import { httpServiceMock } from '../../../mocks';
import { getLogos } from '../../../../common';
import { CollapsibleNavTop } from './collapsible_nav_group_enabled_top';

const mockBasePath = httpServiceMock.createSetupContract({ basePath: '/test' }).basePath;
const coreStartMock = coreMock.createStart();

describe('<CollapsibleNavTop />', () => {
const getMockedNavLink = (
Expand Down Expand Up @@ -67,7 +66,6 @@ describe('<CollapsibleNavTop />', () => {
logos: getLogos({}, mockBasePath.serverBasePath),
shouldShrinkNavigation: false,
visibleUseCases: [],
capabilities: coreStartMock.application.capabilities,
};
};
it('should render home icon', async () => {
Expand Down

0 comments on commit d43fdac

Please sign in to comment.