fix: parse mentions in chatzaps

This commit is contained in:
Alejandro Gomez
2023-07-25 16:31:15 +02:00
parent feab147fb9
commit 2ea8586d40

View File

@ -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>
); );
} }