From d46b1aed549938c9f5e3e658b4098e71b5e2acf7 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 11 Jul 2023 01:01:48 +0800 Subject: Lint error, get away! --- FrontEnd/src/views/common/button/LoadingButton.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'FrontEnd/src/views/common/button/LoadingButton.tsx') diff --git a/FrontEnd/src/views/common/button/LoadingButton.tsx b/FrontEnd/src/views/common/button/LoadingButton.tsx index 0804e40d..fceaec27 100644 --- a/FrontEnd/src/views/common/button/LoadingButton.tsx +++ b/FrontEnd/src/views/common/button/LoadingButton.tsx @@ -7,13 +7,13 @@ import { PaletteColorType } from "@/palette"; import Spinner from "../Spinner"; -function LoadingButton( - props: { - color?: PaletteColorType; - text?: I18nText; - loading?: boolean; - } & React.ComponentPropsWithoutRef<"button"> -): JSX.Element { +interface LoadingButtonProps extends React.ComponentPropsWithoutRef<"button"> { + color?: PaletteColorType; + text?: I18nText; + loading?: boolean; +} + +function LoadingButton(props: LoadingButtonProps): JSX.Element { const { t } = useTranslation(); const { color, text, loading, className, children, ...otherProps } = props; @@ -27,7 +27,7 @@ function LoadingButton( className={classNames( "cru-" + (color ?? "primary"), "cru-button outline", - className + className, )} {...otherProps} > -- cgit v1.2.3