fix: parse mentions in chatzaps

This commit is contained in:
Alejandro Gomez 2023-07-25 16:31:15 +02:00
parent feab147fb9
commit 2ea8586d40
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817

View File

@ -17,6 +17,7 @@ import { useLiveChatFeed } from "../hooks/live-chat";
import { Profile } from "./profile";
import { Icon } from "./icon";
import Spinner from "./spinner";
import { Text } from "./text";
import { useLogin } from "../hooks/login";
import { formatSats } from "../number";
import useTopZappers from "../hooks/top-zappers";
@ -201,7 +202,11 @@ function ChatZap({ zap }: { zap: ParsedZap }) {
<span className="zap-amount">{formatSats(zap.amount)}</span>
sats
</div>
{zap.content && <div className="zap-content">{zap.content}</div>}
{zap.content && (
<div className="zap-content">
<Text content={zap.content} tags={[]} />
</div>
)}
</div>
);
}