mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
make network-display component only clickable when passed a function for onClick (#11379)
This commit is contained in:
parent
433cf6339d
commit
ad6715511e
@ -5,7 +5,6 @@
|
|||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
min-height: 25px;
|
min-height: 25px;
|
||||||
cursor: pointer;
|
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
|
||||||
&--disabled {
|
&--disabled {
|
||||||
@ -36,7 +35,6 @@
|
|||||||
background-color: lighten($dodger-blue, 35%);
|
background-color: lighten($dodger-blue, 35%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
& .chip__label {
|
& .chip__label {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
@ -56,4 +54,8 @@
|
|||||||
width: 12px;
|
width: 12px;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&--clickable {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -74,6 +74,7 @@ export default function NetworkDisplay({
|
|||||||
'network-display--colored': colored,
|
'network-display--colored': colored,
|
||||||
'network-display--disabled': disabled,
|
'network-display--disabled': disabled,
|
||||||
[`network-display--${networkType}`]: colored && networkType,
|
[`network-display--${networkType}`]: colored && networkType,
|
||||||
|
'network-display--clickable': typeof onClick === 'function',
|
||||||
})}
|
})}
|
||||||
labelProps={{
|
labelProps={{
|
||||||
variant: TYPOGRAPHY.H7,
|
variant: TYPOGRAPHY.H7,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user