Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Aug 6, 2020
1 parent 3702ad2 commit 12a8e0c
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ interface IEuiReactRouterProps {
to: string;
}

export const ReactRouterHelperForEUi: React.FC<IEuiReactRouterProps> = ({ to, children }) => {
export const ReactRouterHelperForEui: React.FC<IEuiReactRouterProps> = ({ to, children }) => {
const history = useHistory();

const onClick = (event: React.MouseEvent) => {
Expand All @@ -53,22 +53,22 @@ type TEuiReactRouterButtonProps = EuiButtonProps & IEuiReactRouterProps;
type TEuiReactRouterButtonEmptyProps = EuiButtonEmptyProps & IEuiReactRouterProps;

export const ReactRouterEuiLink: React.FC<TEuiReactRouterLinkProps> = ({ to, ...rest }) => (
<ReactRouterHelperForEUi to={to}>
<ReactRouterHelperForEui to={to}>
<EuiLink {...rest} />
</ReactRouterHelperForEUi>
</ReactRouterHelperForEui>
);

export const ReactRouterEuiButton: React.FC<TEuiReactRouterButtonProps> = ({ to, ...rest }) => (
<ReactRouterHelperForEUi to={to}>
<ReactRouterHelperForEui to={to}>
<EuiButton {...rest} />
</ReactRouterHelperForEUi>
</ReactRouterHelperForEui>
);

export const ReactRouterEuiButtonEmpty: React.FC<TEuiReactRouterButtonEmptyProps> = ({
to,
...rest
}) => (
<ReactRouterHelperForEUi to={to}>
<ReactRouterHelperForEui to={to}>
<EuiButtonEmpty {...rest} />
</ReactRouterHelperForEUi>
</ReactRouterHelperForEui>
);

0 comments on commit 12a8e0c

Please sign in to comment.