polish
This commit is contained in:
@@ -8,6 +8,7 @@ import { NoteZap } from '@shared/notes/actions/zap';
|
||||
|
||||
import { BLOCK_KINDS } from '@stores/constants';
|
||||
|
||||
import { useAccount } from '@utils/hooks/useAccount';
|
||||
import { useBlock } from '@utils/hooks/useBlock';
|
||||
|
||||
export function NoteActions({
|
||||
@@ -22,6 +23,7 @@ export function NoteActions({
|
||||
root?: string;
|
||||
}) {
|
||||
const { add } = useBlock();
|
||||
const { account } = useAccount();
|
||||
|
||||
return (
|
||||
<Tooltip.Provider>
|
||||
@@ -30,7 +32,7 @@ export function NoteActions({
|
||||
<NoteReply id={id} pubkey={pubkey} root={root} />
|
||||
<NoteReaction id={id} pubkey={pubkey} />
|
||||
<NoteRepost id={id} pubkey={pubkey} />
|
||||
<NoteZap id={id} />
|
||||
{(account?.lud06 || account?.lud16) && <NoteZap id={id} />}
|
||||
</div>
|
||||
{!noOpenThread && (
|
||||
<>
|
||||
|
||||
@@ -23,7 +23,7 @@ export function NoteZap({ id }: { id: string }) {
|
||||
};
|
||||
|
||||
const createZapRequest = async () => {
|
||||
const res = await createZap(event as NostrEvent, amount);
|
||||
const res = await createZap(event as unknown as NostrEvent, amount);
|
||||
if (res) setInvoice(res);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user