fix: parse mentions in chatzaps
This commit is contained in:
@ -17,6 +17,7 @@ import { useLiveChatFeed } from "../hooks/live-chat";
|
|||||||
import { Profile } from "./profile";
|
import { Profile } from "./profile";
|
||||||
import { Icon } from "./icon";
|
import { Icon } from "./icon";
|
||||||
import Spinner from "./spinner";
|
import Spinner from "./spinner";
|
||||||
|
import { Text } from "./text";
|
||||||
import { useLogin } from "../hooks/login";
|
import { useLogin } from "../hooks/login";
|
||||||
import { formatSats } from "../number";
|
import { formatSats } from "../number";
|
||||||
import useTopZappers from "../hooks/top-zappers";
|
import useTopZappers from "../hooks/top-zappers";
|
||||||
@ -201,7 +202,11 @@ function ChatZap({ zap }: { zap: ParsedZap }) {
|
|||||||
<span className="zap-amount">{formatSats(zap.amount)}</span>
|
<span className="zap-amount">{formatSats(zap.amount)}</span>
|
||||||
sats
|
sats
|
||||||
</div>
|
</div>
|
||||||
{zap.content && <div className="zap-content">{zap.content}</div>}
|
{zap.content && (
|
||||||
|
<div className="zap-content">
|
||||||
|
<Text content={zap.content} tags={[]} />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user