From f5dfd52f6efece2f4cad227044ecf4dd66301bbc Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 26 Aug 2023 21:36:58 +0800 Subject: ... --- FrontEnd/src/views/common/button/LoadingButton.tsx | 40 ---------------------- 1 file changed, 40 deletions(-) delete mode 100644 FrontEnd/src/views/common/button/LoadingButton.tsx (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 deleted file mode 100644 index 7e7d08e6..00000000 --- a/FrontEnd/src/views/common/button/LoadingButton.tsx +++ /dev/null @@ -1,40 +0,0 @@ -import classNames from "classnames"; - -import { I18nText, ThemeColor, useC } from "../common"; - -import Spinner from "../Spinner"; - -import "./LoadingButton.css"; - -interface LoadingButtonProps extends React.ComponentPropsWithoutRef<"button"> { - color?: ThemeColor; - text?: I18nText; - loading?: boolean; -} - -export default function LoadingButton(props: LoadingButtonProps) { - const c = useC(); - - const { color, text, loading, disabled, className, children, ...otherProps } = - props; - - if (text != null && children != null) { - console.warn("You can't set both text and children props."); - } - - return ( - - ); -} -- cgit v1.2.3