feat(PassengersList): ♿️ skip passengers action icon on tab selection
Simon Mulquin simon@octree.ch
Wed, 19 Jan 2022 14:24:53 +0100
1 files changed,
3 insertions(+),
2 deletions(-)
M
frontend/containers/PassengersList/ClearButton.tsx
→
frontend/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>