File tree 4 files changed +32
-7
lines changed
components/ui/actionable-message
pages/confirm-transaction-base/hardware-connectivity
4 files changed +32
-7
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,14 @@ const CLASSNAME_WARNING = 'actionable-message--warning';
8
8
const CLASSNAME_DANGER = 'actionable-message--danger' ;
9
9
const CLASSNAME_INFO = 'actionable-message--info' ;
10
10
const CLASSNAME_WITH_RIGHT_BUTTON = 'actionable-message--with-right-button' ;
11
+ const CLASSNAME_SUCCESS = 'actionable-message--success' ;
11
12
12
13
const typeHash = {
13
14
warning : CLASSNAME_WARNING ,
14
15
danger : CLASSNAME_DANGER ,
15
16
info : CLASSNAME_INFO ,
16
17
default : '' ,
18
+ success : CLASSNAME_SUCCESS ,
17
19
} ;
18
20
19
21
export default function ActionableMessage ( {
Original file line number Diff line number Diff line change 93
93
}
94
94
}
95
95
96
+ & --success {
97
+ border-color : #c3f4cb ;
98
+ background-color : #eaf8ed ;
99
+
100
+ .actionable-message__message {
101
+ color : var (--Black-100 );
102
+ }
103
+ }
104
+
96
105
& --danger {
97
106
background : var (--Red-000 );
98
107
border : 1px solid var (--Red-300 );
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
3
3
4
4
import { useI18nContext } from '../../../hooks/useI18nContext' ;
5
5
import ActionableMessage from '../../../components/ui/actionable-message/actionable-message' ;
6
- import { DEVICE_NAMES , KEYRING_NAMES } from '../../../../shared/constants/hardware-wallets' ;
6
+ import { KEYRING_NAMES } from '../../../../shared/constants/hardware-wallets' ;
7
7
8
8
export default function HardwareConnectivityMessage ( {
9
9
connected = false ,
@@ -14,14 +14,14 @@ export default function HardwareConnectivityMessage({
14
14
return (
15
15
< div className = "hardware-connectivity-message" >
16
16
< ActionableMessage
17
- type = { connected ? '' : 'warning' }
17
+ type = { connected ? 'success ' : 'warning' }
18
18
message = {
19
19
connected ? (
20
20
t ( 'hardwareWalletConnectivityConnected' , [ KEYRING_NAMES . LEDGER ] )
21
21
) : (
22
22
< >
23
23
{ t ( 'hardwareWalletConnectivityNotConnected' , [
24
- DEVICE_NAMES . LEDGER ,
24
+ KEYRING_NAMES . LEDGER ,
25
25
] ) } { ' ' }
26
26
< button
27
27
className = "hardware-connectivity-message__button"
Original file line number Diff line number Diff line change 19
19
}
20
20
}
21
21
22
- .hardware-connectivity-message__button {
23
- font-size : inherit ;
24
- background : unset ;
25
- padding : 0 ;
22
+ .hardware-connectivity {
23
+ & -message {
24
+ margin-bottom : 24px ;
25
+
26
+ .actionable-message {
27
+ padding : 8px ;
28
+
29
+ & __message {
30
+ text-align : start ;
31
+ }
32
+ }
33
+
34
+ & __button {
35
+ font-size : inherit ;
36
+ background : unset ;
37
+ padding : 0 ;
38
+ }
39
+ }
26
40
}
You can’t perform that action at this time.
0 commit comments