I already have horizontal line at the bottom of the table, and my problem is, if there is too much data on the table, how can i add another scrollbar on the top of the header of the table? Thank you!
<BTable
id="project-table"
striped
bordered
hover
size="md"
{...getTableProps()}
style={{
overflowX: 'scroll !important',
whiteSpace: 'nowrap',
}}
>
<thead>
{headerGroups.map(headerGroup => (
<tr {...headerGroup.getHeaderGroupProps()}>
{headerGroup.headers.map(column => (
<th {...column.getHeaderProps()}>
{column.render('Header')}
</th>
))}
</tr>
))}
</thead>
<tbody>
{page.map((row, i) => {
prepareRow(row)
return (
<tr {...row.getRowProps()}>
{row.cells.map(cell => {
return (
<td {...cell.getCellProps()}>
{cell.render('Cell')}
</td>
)
})}
</tr>
)
})}
</tbody>
</BTable>