Fixed reactstrap 9 deprecated warnings

This commit is contained in:
Alejandro Celaya
2022-03-11 16:37:41 +01:00
parent a8f996bec7
commit c4148f0494
11 changed files with 12 additions and 14 deletions

View File

@@ -9,10 +9,8 @@ interface PaginationDropdownProps {
const PaginationDropdown = ({ toggleClassName, ranges, value, setValue }: PaginationDropdownProps) => (
<UncontrolledDropdown>
<DropdownToggle caret color="link" className={toggleClassName}>
Paginate
</DropdownToggle>
<DropdownMenu right>
<DropdownToggle caret color="link" className={toggleClassName}>Paginate</DropdownToggle>
<DropdownMenu end>
{ranges.map((itemsPerPage) => (
<DropdownItem key={itemsPerPage} active={itemsPerPage === value} onClick={() => setValue(itemsPerPage)}>
<b>{itemsPerPage}</b> items per page