fix: table warning message
This commit is contained in:
parent
661120709a
commit
77ec147fe8
|
@ -117,42 +117,40 @@ export function ResultsTable({ isListOrdered, listAfterMergeSort, links }) {
|
||||||
}
|
}
|
||||||
}, [isListOrdered, listAfterMergeSort, links]);
|
}, [isListOrdered, listAfterMergeSort, links]);
|
||||||
|
|
||||||
return (
|
return !(isListOrdered && isTableComputed) ? (
|
||||||
|
""
|
||||||
|
) : (
|
||||||
<div>
|
<div>
|
||||||
{!(isListOrdered && isTableComputed) ? (
|
<div>
|
||||||
""
|
<Separator />
|
||||||
) : (
|
<div className="relative overflow-x-auto shadow-md sm:rounded-lg mt-10">
|
||||||
<div>
|
<table className="w-full text-sm text-left text-gray-800 dark:text-gray-400">
|
||||||
<Separator />
|
<thead className=" text-xs text-gray-700 bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
|
||||||
<div className="relative overflow-x-auto shadow-md sm:rounded-lg mt-10">
|
<tr>
|
||||||
<table className="w-full text-sm text-left text-gray-800 dark:text-gray-400">
|
<th scope="col" className="px-6 py-3">
|
||||||
<thead className=" text-xs text-gray-700 bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
|
Position
|
||||||
<tr>
|
</th>
|
||||||
<th scope="col" className="px-6 py-3">
|
|
||||||
Position
|
|
||||||
</th>
|
|
||||||
|
|
||||||
<th scope="col" className="px-6 py-3">
|
<th scope="col" className="px-6 py-3">
|
||||||
Element
|
Element
|
||||||
</th>
|
</th>
|
||||||
|
|
||||||
<th scope="col" className="text-center px-6 py-3">
|
<th scope="col" className="text-center px-6 py-3">
|
||||||
Possible relative values
|
Possible relative values
|
||||||
</th>
|
</th>
|
||||||
|
|
||||||
<th scope="col" className="text-center px-6 py-3">
|
<th scope="col" className="text-center px-6 py-3">
|
||||||
Aggregated Means*
|
Aggregated Means*
|
||||||
</th>
|
</th>
|
||||||
<th scope="col" className="text-center px-6 py-3">
|
<th scope="col" className="text-center px-6 py-3">
|
||||||
Coefficient of variation
|
Coefficient of variation
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>{reactTableContents(tableContents)}</tbody>
|
<tbody>{reactTableContents(tableContents)}</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
</div>
|
||||||
<div className="grid w-full place-items-center text-center ">
|
<div className="grid w-full place-items-center text-center ">
|
||||||
<p className="mt-8 max-w-5xl">
|
<p className="mt-8 max-w-5xl">
|
||||||
*This is the geometric mean if all elements are either all positive or
|
*This is the geometric mean if all elements are either all positive or
|
||||||
|
|
Loading…
Reference in New Issue
Block a user