Device manager - device tile main click target (#9409)
* change device tile click to toggle details instead of selection * lint * test current device section click * stuck cypress
This commit is contained in:
parent
77543b32d4
commit
17fce6ccb2
14 changed files with 69 additions and 22 deletions
|
@ -21,15 +21,22 @@ import DeviceTile, { DeviceTileProps } from './DeviceTile';
|
|||
|
||||
interface Props extends DeviceTileProps {
|
||||
isSelected: boolean;
|
||||
onClick: () => void;
|
||||
onSelect: () => void;
|
||||
onClick?: () => void;
|
||||
}
|
||||
|
||||
const SelectableDeviceTile: React.FC<Props> = ({ children, device, isSelected, onClick }) => {
|
||||
const SelectableDeviceTile: React.FC<Props> = ({
|
||||
children,
|
||||
device,
|
||||
isSelected,
|
||||
onSelect,
|
||||
onClick,
|
||||
}) => {
|
||||
return <div className='mx_SelectableDeviceTile'>
|
||||
<StyledCheckbox
|
||||
kind={CheckboxStyle.Solid}
|
||||
checked={isSelected}
|
||||
onChange={onClick}
|
||||
onChange={onSelect}
|
||||
className='mx_SelectableDeviceTile_checkbox'
|
||||
id={`device-tile-checkbox-${device.device_id}`}
|
||||
data-testid={`device-tile-checkbox-${device.device_id}`}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue