1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-01 04:38:15 +00:00

pass className prop to DeviceHeader component

This commit is contained in:
slowbackspace 2018-12-18 10:58:12 +01:00 committed by Szymon Lesisz
parent 3da10ecf5a
commit 032c081447

View File

@ -101,6 +101,7 @@ const DeviceHeader = ({
isAccessible = true, isAccessible = true,
disabled = false, disabled = false,
isSelected = false, isSelected = false,
className,
}) => { }) => {
const status = getStatus(device); const status = getStatus(device);
return ( return (
@ -109,6 +110,7 @@ const DeviceHeader = ({
isOpen={isOpen} isOpen={isOpen}
isHoverable={isHoverable} isHoverable={isHoverable}
disabled={disabled} disabled={disabled}
className={className}
> >
<ClickWrapper <ClickWrapper
disabled={disabled} disabled={disabled}
@ -139,6 +141,7 @@ DeviceHeader.propTypes = {
isOpen: PropTypes.bool, isOpen: PropTypes.bool,
isSelected: PropTypes.bool, isSelected: PropTypes.bool,
onClickWrapper: PropTypes.func.isRequired, onClickWrapper: PropTypes.func.isRequired,
className: PropTypes.string,
}; };
export default DeviceHeader; export default DeviceHeader;