From 2ead68faa3f0826dd4e474aac73a6355beb782fa Mon Sep 17 00:00:00 2001 From: Ryukemeister Date: Fri, 29 Sep 2023 12:26:42 +0530 Subject: [PATCH] rename button file --- packages/atoms/connect/ConnectBtn.tsx | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 packages/atoms/connect/ConnectBtn.tsx diff --git a/packages/atoms/connect/ConnectBtn.tsx b/packages/atoms/connect/ConnectBtn.tsx deleted file mode 100644 index 3f5a708bf0..0000000000 --- a/packages/atoms/connect/ConnectBtn.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import { useState } from "react"; -import type { ConnectButtonProps } from "types"; -import type { AtomsGlobalConfigProps } from "types"; - -// TODO: add default styling -// also a cssClassAssembler function for custom styling - -export default function Connect({ buttonText, onButtonClick }: ConnectButtonProps & AtomsGlobalConfigProps) { - const [isProcessing, setIsProcessing] = useState(false); - const [errMsg, setErrMsg] = useState(""); - - function handleSubmit(e: Event) { - e.preventDefault(); - - setIsProcessing(true); - onButtonClick(); - } - - return ( -
- - {!!errMsg ? {errMsg} : null} -
- ); -}