Remove Card from send view.

This commit is contained in:
Arne Pedersen
2022-12-29 00:17:13 +01:00
parent 55f6251fd2
commit c65857979f

View File

@@ -82,7 +82,7 @@ export const SendView = ({ keys }: SendViewProps) => {
const { subs, relays } = await subscribe(keys, peerKey, processEvent)
nostr.current = { subs, relays, ...keys }
return () => {
nostr?.current?.subs.forEach(sub => sub.unsub())
nostr?.current?.subs.forEach((sub) => sub.unsub())
}
})()
}, [])
@@ -117,12 +117,10 @@ export const SendView = ({ keys }: SendViewProps) => {
/>
)}
<div className="mx-auto max-w-[64rem] flex flex-col gap-5">
<Card>
<div className="p-4">
<PeerInput peerKey={peerKey} setShowScan={setShowScan} onChange={setPeerKey} />
{isValidPeerKey(peerKey) && <Message message={message} onChange={onMessageChange} />}
</div>
</Card>
<div className="p-4">
<PeerInput peerKey={peerKey} setShowScan={setShowScan} onChange={setPeerKey} />
{isValidPeerKey(peerKey) && <Message message={message} onChange={onMessageChange} />}
</div>
</div>
</div>
)