From 1fde319733d9de04762a60ad978f47e7303da037 Mon Sep 17 00:00:00 2001 From: blam Date: Thu, 7 Oct 2021 13:27:18 +0200 Subject: [PATCH] chore: tidy up the js Signed-off-by: blam --- packages/core-components/src/components/Button/Button.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/core-components/src/components/Button/Button.tsx b/packages/core-components/src/components/Button/Button.tsx index a44c5df148..cc30aeeb47 100644 --- a/packages/core-components/src/components/Button/Button.tsx +++ b/packages/core-components/src/components/Button/Button.tsx @@ -45,15 +45,14 @@ declare function ButtonType(props: ButtonProps): JSX.Element; */ const LinkWrapper = (props: LinkProps) => ; -const ActualButton = React.forwardRef((props, ref) => { +const ActualButton = React.forwardRef((props, ref) => ( /** This temporarily fixes a bug in material-ui where the color of the Link overrides the color of the button https://github.com/mui-org/material-ui/issues/28852 */ - - return ; -}) as { (props: ButtonProps): JSX.Element }; + +)) as { (props: ButtonProps): JSX.Element }; // TODO(Rugvip): We use this as a workaround to make the exported type be a // function, which makes our API reference docs much nicer.