diff --git a/src/components/Message.tsx b/src/components/Message.tsx deleted file mode 100644 index f2a89a88..00000000 --- a/src/components/Message.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import { FC } from "react"; - -type Props = { - color?: string; - message: string; -}; - -const Message: FC = ({ message, color = "bg-red-500" }) => { - return ( -

- {message} -

- ); -}; - -export default Message; diff --git a/src/pages/Home/ListChannelModal/ListChannelModal.tsx b/src/pages/Home/ListChannelModal/ListChannelModal.tsx index a3b22cef..ba121121 100644 --- a/src/pages/Home/ListChannelModal/ListChannelModal.tsx +++ b/src/pages/Home/ListChannelModal/ListChannelModal.tsx @@ -4,7 +4,6 @@ import { ConfirmModal, type Props as ConfirmModalProps, } from "@/components/ConfirmModal"; -import Message from "@/components/Message"; import { LightningChannel } from "@/models/lightning-channel"; import { checkError } from "@/utils/checkError"; import { instance } from "@/utils/interceptor"; @@ -84,7 +83,7 @@ export default function ListChannelModal({ isLoading={isLoading} /> )} - {error && } + {error && {error}} );