Skip to content

Commit 2144e1a

Browse files
committed
improved color separation
1 parent 63fc7c6 commit 2144e1a

File tree

2 files changed

+24
-21
lines changed

2 files changed

+24
-21
lines changed

src/components/payment/PaymentNotifications/PaymentNotifications.styles.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,11 @@ export const MetaLabel = styled.span`
9797
export 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

104107
export 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
`;
224227
export const LeftSideTX = styled.div`
225228
display: flex;

src/components/payment/PaymentNotifications/PaymentNotifications.tsx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)