TootContent: renderas section element
This commit is contained in:
		
							parent
							
								
									ad0076156b
								
							
						
					
					
						commit
						d66bc8ffe1
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -17,7 +17,7 @@ function preventDefault(event: Event) {
 | 
			
		|||
  event.preventDefault();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export type TootContentProps = JSX.HTMLAttributes<HTMLDivElement> & {
 | 
			
		||||
export type TootContentProps = JSX.HTMLAttributes<HTMLElement> & {
 | 
			
		||||
  source?: string;
 | 
			
		||||
  emojis?: mastodon.v1.CustomEmoji[];
 | 
			
		||||
  mentions: mastodon.v1.StatusMention[];
 | 
			
		||||
| 
						 | 
				
			
			@ -58,7 +58,7 @@ const TootContent: Component<TootContentProps> = (oprops) => {
 | 
			
		|||
  };
 | 
			
		||||
 | 
			
		||||
  return (
 | 
			
		||||
    <div
 | 
			
		||||
    <section
 | 
			
		||||
      ref={(ref) => {
 | 
			
		||||
        createRenderEffect(() => {
 | 
			
		||||
          const finder = clientFinder();
 | 
			
		||||
| 
						 | 
				
			
			@ -104,7 +104,7 @@ const TootContent: Component<TootContentProps> = (oprops) => {
 | 
			
		|||
          }
 | 
			
		||||
        ></div>
 | 
			
		||||
      </Show>
 | 
			
		||||
    </div>
 | 
			
		||||
    </section>
 | 
			
		||||
  );
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue