TootContent: renderas section element

This commit is contained in:
thislight 2024-11-25 20:31:21 +08:00
parent ad0076156b
commit d66bc8ffe1
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E

View file

@ -17,7 +17,7 @@ function preventDefault(event: Event) {
event.preventDefault(); event.preventDefault();
} }
export type TootContentProps = JSX.HTMLAttributes<HTMLDivElement> & { export type TootContentProps = JSX.HTMLAttributes<HTMLElement> & {
source?: string; source?: string;
emojis?: mastodon.v1.CustomEmoji[]; emojis?: mastodon.v1.CustomEmoji[];
mentions: mastodon.v1.StatusMention[]; mentions: mastodon.v1.StatusMention[];
@ -58,7 +58,7 @@ const TootContent: Component<TootContentProps> = (oprops) => {
}; };
return ( return (
<div <section
ref={(ref) => { ref={(ref) => {
createRenderEffect(() => { createRenderEffect(() => {
const finder = clientFinder(); const finder = clientFinder();
@ -104,7 +104,7 @@ const TootContent: Component<TootContentProps> = (oprops) => {
} }
></div> ></div>
</Show> </Show>
</div> </section>
); );
}; };