Skip to content

Commit

Permalink
prettier configured
Browse files Browse the repository at this point in the history
  • Loading branch information
semd committed Apr 23, 2021
1 parent 3230b6a commit 006c81b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,10 @@ export const QueryBarDefineRule = ({
}
};

const actionTimelineToHide = useMemo<ActionTimelineToShow[]>(() => ['duplicate', 'createFrom'], []);
const actionTimelineToHide = useMemo<ActionTimelineToShow[]>(
() => ['duplicate', 'createFrom'],
[]
);

return (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ const AddTimelineButtonComponent: React.FC<AddTimelineButtonComponentProps> = ({
</EuiPopover>
</EuiFlexItem>

{showTimelineModal ? <OpenTimelineModal onClose={onCloseTimelineModal} hideActions={actionTimelineToHide} /> : null}
{showTimelineModal ? (
<OpenTimelineModal onClose={onCloseTimelineModal} hideActions={actionTimelineToHide} />
) : null}
</>
);
};
Expand Down

0 comments on commit 006c81b

Please sign in to comment.