File tree Expand file tree Collapse file tree 4 files changed +26
-12
lines changed Expand file tree Collapse file tree 4 files changed +26
-12
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ export const Default: Story = {
39
39
text_black : "#000000" ,
40
40
text_white : "#FFFFFF" ,
41
41
text_fade : "#9CAACB" ,
42
+ price_impact : "#E64646" ,
43
+ skeleton_shine : "#FFFFFF" ,
42
44
} ,
43
45
} ,
44
46
} ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ type ConfirmationModalProps = {
17
17
const ConfirmationModal : FC < ConfirmationModalProps > = ( { setConfirmModal } ) => {
18
18
const { t } = useTranslation ( ) ;
19
19
const handleConfirmClose = ( ) => {
20
- setConfirmModal ( ModalState . IN_PROGRESS ) ;
20
+ setConfirmModal ( ModalState . NONE ) ;
21
21
} ;
22
22
const { tonConnectInstance } = useOptionsStore ( ) ;
23
23
useEffect ( ( ) => {
Original file line number Diff line number Diff line change 90
90
.dialog-community-modal {
91
91
display : flex ;
92
92
flex-direction : column ;
93
+ flex-grow : 1 ;
93
94
height : 100% ;
94
95
}
95
96
.community-modal-container {
97
+ display : flex ;
98
+ flex-direction : column ;
99
+ gap : 0.5rem 0.5rem ;
96
100
flex-grow : 1 ;
97
101
}
98
102
.community-modal-warning {
118
122
padding-left : 1.25rem ;
119
123
padding-right : 1.25rem ;
120
124
}
121
- .accept-button {
122
- display : flex ;
123
- height : 2.5rem ;
124
- border-radius : 0.75rem ;
125
- width : 100% ;
126
- align-items : center ;
127
- justify-content : center ;
128
- font-size : 0.875rem ;
129
- }
125
+ }
126
+
127
+ .accept-button {
128
+ display : flex ;
129
+ height : 2.5rem ;
130
+ border-radius : 0.75rem ;
131
+ width : 100% ;
132
+ align-items : center ;
133
+ justify-content : center ;
134
+ font-size : 0.875rem ;
130
135
}
131
136
.pinned-token-container {
132
137
display : flex ;
Original file line number Diff line number Diff line change @@ -162,6 +162,13 @@ const CardDialog: FC<CardDialogProps> = ({
162
162
const assetList = type === "pay" ? assets : receiveAssets ;
163
163
164
164
const handleOnTokenSelect = ( asset : Asset ) => {
165
+ if ( ! communityTokens && asset . warning ) {
166
+ setContractCommunity ( asset ) ;
167
+ setPromptForCommunity ( true ) ;
168
+ }
169
+ if ( promptForCommunity ) {
170
+ setPromptForCommunity ( false ) ;
171
+ }
165
172
setSearchInput ( "" ) ;
166
173
onTokenSelect ( asset ) ;
167
174
setPage ( 1 ) ;
@@ -499,8 +506,8 @@ const CardDialog: FC<CardDialogProps> = ({
499
506
contractCommunity !
500
507
. address
501
508
) ;
502
- onTokenSelect (
503
- contractCommunity !
509
+ handleOnTokenSelect (
510
+ contractCommunity
504
511
) ;
505
512
} }
506
513
style = { {
You can’t perform that action at this time.
0 commit comments