Skip to content

Commit

Permalink
[chore] Remove Fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Feb 2, 2023
1 parent 1b67998 commit 41ce96a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/flyout/flyout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import React, {
ComponentPropsWithRef,
CSSProperties,
ElementType,
Fragment,
FunctionComponent,
MouseEvent as ReactMouseEvent,
MutableRefObject,
Expand Down Expand Up @@ -455,10 +454,10 @@ export const EuiFlyout = forwardRef(
}

return (
<Fragment>
<>
<EuiWindowEvent event="keydown" handler={onKeyDown} />
{flyout}
</Fragment>
</>
);
}
// React.forwardRef interferes with the inferred element type
Expand Down

0 comments on commit 41ce96a

Please sign in to comment.