table tr for head
This commit is contained in:
		
							parent
							
								
									fd688021ea
								
							
						
					
					
						commit
						91e75a2c72
					
				@ -32,7 +32,9 @@ const Table: React.FC<Props> = ({data:{headers,body}}) => {
 | 
			
		||||
	return (
 | 
			
		||||
		<table className="w-full">
 | 
			
		||||
			<thead className="border-b-2 dark:border-gray-900">
 | 
			
		||||
				{headers.map((e,i)=><th key={i} className="text-left">{e.name}</th>)}
 | 
			
		||||
				<tr>
 | 
			
		||||
					{headers.map((e,i)=><th key={i} className="text-left">{e.name}</th>)}
 | 
			
		||||
				</tr>
 | 
			
		||||
			</thead>
 | 
			
		||||
			<tbody className="divide-y dark:divide-gray-900">
 | 
			
		||||
				{body.map((row,rowIndex)=>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user