This commit is contained in:
Nicolas Beauvais
2019-11-20 08:00:07 -07:00
committed by Tanner Linsley
parent 6ccdce9908
commit 1be9f59180
+2 -2
View File
@@ -85,14 +85,14 @@ function Table({ columns: userColumns, data, renderRowSubComponent }) {
</tr>
{/*
If the row is in an expanded state, render a row with a
column that spands the entire length of the table.
column that fills the entire length of the table.
*/}
{row.isExpanded ? (
<tr>
<td colSpan={flatColumns.length}>
{/*
Inside it, call our renderRowSubComponent function. In reality,
you coul pass whatever you want as props to
you could pass whatever you want as props to
a component like this, including the entire
table instance. But for this example, we'll just
pass the row