File tree Expand file tree Collapse file tree 2 files changed +24
-21
lines changed
src/components/payment/PaymentNotifications Expand file tree Collapse file tree 2 files changed +24
-21
lines changed Original file line number Diff line number Diff line change @@ -97,8 +97,11 @@ export const MetaLabel = styled.span`
9797export const MetaValue = styled . span `
9898 display: inline-flex;
9999 font-size: ${ FONT_SIZE . md } ;
100- color: var(--text-main-color);
101100 align-items: center;
101+ &:not(.date){
102+ color: var(--text-main-color);
103+ }
104+
102105` ;
103106
104107export const CopyButton = styled ( BaseButton ) `
@@ -206,8 +209,8 @@ export const Root = styled(BaseCard)`
206209 @media only screen and ${ media . lg } {
207210 > .ant-card-head,
208211 > .ant-card-body {
209- margin-left: 15 %;
210- margin-right: 15 %;
212+ margin-left: 18 %;
213+ margin-right: 18 %;
211214 }
212215 }
213216` ;
@@ -219,7 +222,7 @@ export const TransactionWrapper = styled.div`
219222 margin-top: 1.5rem;
220223 min-width: 65vw;
221224 @media only screen and ${ media . lg } {
222- min-width: 42vw ;
225+ min-width: 40vw ;
223226` ;
224227export const LeftSideTX = styled . div `
225228 display: flex;
Original file line number Diff line number Diff line change @@ -203,27 +203,27 @@ export const PaymentNotifications: React.FC<PaymentNotificationsProps> = ({ clas
203203 </ S . CopyButton >
204204 </ S . MetaValue >
205205 </ S . MetaItem >
206+ < S . MetaItem >
207+ < S . MetaLabel > TX ID:</ S . MetaLabel >
208+ < S . MetaValue >
209+ { notification . tx_id . substring ( 0 , 10 ) } ...
210+ < S . CopyButton
211+ onClick = { ( ) => {
212+ navigator . clipboard . writeText ( notification . tx_id ) ;
213+ notificationController . success ( {
214+ message : 'Transaction ID copied to clipboard' ,
215+ } ) ;
216+ } }
217+ >
218+ Copy TX ID
219+ </ S . CopyButton >
220+ </ S . MetaValue >
221+ </ S . MetaItem >
206222 </ S . NotificationMeta >
207223 < S . TransactionWrapper >
208224 < S . LeftSideTX >
209225 < S . MetaItem >
210- < S . MetaValue > { formatDate ( notification . created_at ) } </ S . MetaValue >
211- </ S . MetaItem >
212- < S . MetaItem >
213- < S . MetaLabel > TX ID:</ S . MetaLabel >
214- < S . MetaValue >
215- { notification . tx_id . substring ( 0 , 10 ) } ...
216- < S . CopyButton
217- onClick = { ( ) => {
218- navigator . clipboard . writeText ( notification . tx_id ) ;
219- notificationController . success ( {
220- message : 'Transaction ID copied to clipboard' ,
221- } ) ;
222- } }
223- >
224- Copy TX ID
225- </ S . CopyButton >
226- </ S . MetaValue >
226+ < S . MetaValue className = 'date' > { formatDate ( notification . created_at ) } </ S . MetaValue >
227227 </ S . MetaItem >
228228 </ S . LeftSideTX >
229229 < div > { formatAmount ( notification . amount ) } </ div >
You can’t perform that action at this time.
0 commit comments