diff --git a/app/wallet/address-modal.js b/app/wallet/address-modal.js deleted file mode 100644 index 5c3cde1..0000000 --- a/app/wallet/address-modal.js +++ /dev/null @@ -1,11 +0,0 @@ -import { Modal } from '@mantine/core'; - -import SendForm from '../../components/send-form'; - -export default function AddressModal(props) { - return ( - - - - ); -} diff --git a/app/wallet/message-tab.js b/app/wallet/message-tab.js deleted file mode 100644 index 96324e3..0000000 --- a/app/wallet/message-tab.js +++ /dev/null @@ -1,48 +0,0 @@ -import { Box, Group, Textarea, Button } from '@mantine/core'; -import { useForm } from '@mantine/form'; -import { useDisclosure } from '@mantine/hooks'; -import { useState } from 'react'; -import { signMessage } from '../../lib/ledger'; - -import MessageModal from './message-modal'; - -export default function MessageTab(props) { - const [signature, setSignature] = useState(); - const [opened, { open, close }] = useDisclosure(false); - - const form = useForm({ - initialValues: { - message: '', - }, - }); - - const onClickSignMessage = () => { - const path = props.selectedAddress.derivationPath.split('/'); - signMessage(form.values.message, Number(path[3]), Number(path[4])).then((result) => { - setSignature(result.signature); - - open(); - }); - }; - - return ( - -