all repos — caroster @ b4e4a01eef100beb301bf892d0050953223e5a3a

[Octree] Group carpool to your event https://caroster.io

feat(PassengersList): ♿️ skip passengers action icon on tab selection
Simon Mulquin simon@octree.ch
Wed, 19 Jan 2022 14:24:53 +0100
commit

b4e4a01eef100beb301bf892d0050953223e5a3a

parent

486a83d5fe5fe804ce8c7befbc4314da24d1c19b

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M frontend/containers/PassengersList/ClearButton.tsxfrontend/containers/PassengersList/ClearButton.tsx

@@ -5,15 +5,16 @@

interface Props { onClick?: () => void; icon: string; + tabIndex?: number; } const ClearButton = (props: Props) => { - const {icon, onClick} = props; + const {icon, onClick, tabIndex} = props; if (onClick) return ( <ListItemSecondaryAction> - <IconButton size="small" color="primary" onClick={onClick}> + <IconButton size="small" color="primary" onClick={onClick} tabIndex={tabIndex}> <Icon>{icon}</Icon> </IconButton> </ListItemSecondaryAction>