mirror of
https://github.com/aljazceru/sendstr-web.git
synced 2025-12-18 23:14:23 +01:00
Remove Card from send view.
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user