Skip to content

Commit

Permalink
rename boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelolo24 committed Sep 15, 2022
1 parent c6e732f commit b4c4cf1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('FlyoutBottomBar', () => {
test('it renders the expected bottom bar', () => {
render(
<TestProviders>
<FlyoutBottomBar timelineId="test" showDataproviders={true} />
<FlyoutBottomBar timelineId="test" showTimelineHeaderPanel={true} />
</TestProviders>
);

Expand All @@ -25,7 +25,7 @@ describe('FlyoutBottomBar', () => {
test('it renders the flyout header panel', () => {
render(
<TestProviders>
<FlyoutBottomBar timelineId="test" showDataproviders={true} />
<FlyoutBottomBar timelineId="test" showTimelineHeaderPanel={true} />
</TestProviders>
);

Expand All @@ -35,7 +35,7 @@ describe('FlyoutBottomBar', () => {
test('it hides the flyout header panel', () => {
render(
<TestProviders>
<FlyoutBottomBar timelineId="test" showDataproviders={false} />
<FlyoutBottomBar timelineId="test" showTimelineHeaderPanel={false} />
</TestProviders>
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ import { FLYOUT_BUTTON_BAR_CLASS_NAME } from '../../timeline/helpers';
import { FlyoutHeaderPanel } from '../header';

interface FlyoutBottomBarProps {
showDataproviders: boolean;
showTimelineHeaderPanel: boolean;
timelineId: string;
}

export const FlyoutBottomBar = React.memo<FlyoutBottomBarProps>(
({ showDataproviders, timelineId }) => {
({ showTimelineHeaderPanel, timelineId }) => {
return (
<div className={FLYOUT_BUTTON_BAR_CLASS_NAME} data-test-subj="flyoutBottomBar">
{showDataproviders && <FlyoutHeaderPanel timelineId={timelineId} />}
{showTimelineHeaderPanel && <FlyoutHeaderPanel timelineId={timelineId} />}
</div>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const FlyoutComponent: React.FC<OwnProps> = ({ timelineId, onAppLeave }) => {
<EuiFocusTrap disabled={!focusOwnership}>
<Pane timelineId={timelineId} visible={show} />
</EuiFocusTrap>
<FlyoutBottomBar timelineId={timelineId} showDataproviders={!show} />
<FlyoutBottomBar showTimelineHeaderPanel={!show} timelineId={timelineId} />
</>
</EuiOutsideClickDetector>
);
Expand Down

0 comments on commit b4c4cf1

Please sign in to comment.