@@ -254,6 +254,36 @@ exports[`AssetPage should render a native asset 1`] = `
254
254
<div
255
255
class = " mm-box mm-box--margin-top-2 mm-box--display-flex mm-box--gap-7 mm-box--flex-direction-column"
256
256
>
257
+ <div
258
+ class = " mm-box mm-box--padding-right-4 mm-box--padding-left-4 mm-box--display-flex mm-box--flex-direction-column"
259
+ >
260
+ <h3
261
+ class = " mm-box mm-text mm-text--heading-md mm-box--padding-bottom-4 mm-box--color-text-default"
262
+ >
263
+ Token details
264
+ </h3 >
265
+ <div
266
+ class = " mm-box mm-box--display-flex mm-box--gap-2 mm-box--flex-direction-column"
267
+ >
268
+ <div
269
+ class = " mm-box mm-box--display-flex mm-box--justify-content-space-between"
270
+ >
271
+ <p
272
+ class = " mm-box mm-text mm-text--body-md-medium mm-box--color-text-alternative"
273
+ >
274
+ Spending caps
275
+ </p >
276
+ <a
277
+ class = " mm-box mm-text mm-button-base asset-page__spending-caps mm-text--body-md-medium mm-button-link mm-button-link--size-auto mm-text--body-md-medium mm-box--padding-0 mm-box--padding-right-0 mm-box--padding-left-0 mm-box--display-inline-flex mm-box--justify-content-center mm-box--align-items-center mm-box--color-primary-default mm-box--background-color-transparent"
278
+ href = " https://portfolio.test/?metamaskEntry=asset_page& metametricsId=& metricsEnabled=false& marketingEnabled=false& accountAddress=0x1& tab=spending-caps"
279
+ rel = " noopener noreferrer"
280
+ target = " _blank"
281
+ >
282
+ Edit in Portfolio
283
+ </a >
284
+ </div >
285
+ </div >
286
+ </div >
257
287
<div
258
288
class = " mm-box mm-box--margin-bottom-8"
259
289
>
@@ -555,59 +585,84 @@ exports[`AssetPage should render an ERC20 asset without prices 1`] = `
555
585
Token details
556
586
</h3 >
557
587
<div
558
- class = " mm-box mm-box--display-flex mm-box--justify-content-space-between "
588
+ class = " mm-box mm-box--display-flex mm-box--gap-2 mm-box--flex-direction-column "
559
589
>
560
- <p
561
- class = " mm-box mm-text mm-text--body-md-medium mm-box--color-text-alternative "
590
+ <div
591
+ class = " mm-box"
562
592
>
563
- Contract address
564
- </p >
565
- <div >
566
593
<div
567
- aria-describedby = " tippy-tooltip-9"
568
- class = " "
569
- data-original-title = " Copy to clipboard"
570
- data-tooltipped = " "
571
- style = " display: inline;"
572
- tabindex = " 0"
594
+ class = " mm-box mm-box--display-flex mm-box--justify-content-space-between"
573
595
>
574
- <button
575
- class = " mm-box mm-text mm-button-base mm-button-base--size-sm multichain-address-copy-button mm-text--body-sm mm-box--padding-0 mm-box--padding-right-4 mm-box--padding-left-4 mm-box--display-inline-flex mm-box--justify-content-center mm-box--align-items-center mm-box--color-primary-default mm-box--background-color-primary-muted mm-box--rounded-pill"
576
- data-testid = " address-copy-button-text"
596
+ <p
597
+ class = " mm-box mm-text mm-text--body-md-medium mm-box--color-text-alternative"
577
598
>
578
- <span
579
- class = " mm-box mm-text mm-text--inherit mm-box--color-primary-default"
599
+ Contract address
600
+ </p >
601
+ <div >
602
+ <div
603
+ aria-describedby = " tippy-tooltip-9"
604
+ class = " "
605
+ data-original-title = " Copy to clipboard"
606
+ data-tooltipped = " "
607
+ style = " display: inline;"
608
+ tabindex = " 0"
580
609
>
581
- <div
582
- class = " mm-box mm-box--display-flex"
610
+ <button
611
+ class = " mm-box mm-text mm-button-base mm-button-base--size-sm multichain-address-copy-button mm-text--body-sm mm-box--padding-0 mm-box--padding-right-4 mm-box--padding-left-4 mm-box--display-inline-flex mm-box--justify-content-center mm-box--align-items-center mm-box--color-primary-default mm-box--background-color-primary-muted mm-box--rounded-pill"
612
+ data-testid = " address-copy-button-text"
583
613
>
584
- 0x30937...C4936
585
- </div >
586
- </span >
587
- <span
588
- class = " mm-box mm-icon mm-icon--size-sm mm-box--margin-inline-start-1 mm-box--display-inline-block mm-box--color-inherit"
589
- style = " mask-image: url('./images/icons/copy.svg');"
590
- />
591
- </button >
614
+ <span
615
+ class = " mm-box mm-text mm-text--inherit mm-box--color-primary-default"
616
+ >
617
+ <div
618
+ class = " mm-box mm-box--display-flex"
619
+ >
620
+ 0x30937...C4936
621
+ </div >
622
+ </span >
623
+ <span
624
+ class = " mm-box mm-icon mm-icon--size-sm mm-box--margin-inline-start-1 mm-box--display-inline-block mm-box--color-inherit"
625
+ style = " mask-image: url('./images/icons/copy.svg');"
626
+ />
627
+ </button >
628
+ </div >
629
+ </div >
630
+ </div >
631
+ <div
632
+ class = " mm-box mm-box--display-flex mm-box--gap-2 mm-box--flex-direction-column"
633
+ >
634
+ <div
635
+ class = " mm-box mm-box--display-flex mm-box--justify-content-space-between"
636
+ >
637
+ <p
638
+ class = " mm-box mm-text mm-text--body-md-medium mm-box--color-text-alternative"
639
+ >
640
+ Token decimal
641
+ </p >
642
+ <p
643
+ class = " mm-box mm-text mm-text--body-md mm-box--color-text-default"
644
+ >
645
+ 18
646
+ </p >
647
+ </div >
592
648
</div >
593
649
</div >
594
- </div >
595
- <div
596
- class = " mm-box mm-box--display-flex mm-box--gap-2 mm-box--flex-direction-column"
597
- >
598
650
<div
599
651
class = " mm-box mm-box--display-flex mm-box--justify-content-space-between"
600
652
>
601
653
<p
602
654
class = " mm-box mm-text mm-text--body-md-medium mm-box--color-text-alternative"
603
655
>
604
- Token decimal
656
+ Spending caps
605
657
</p >
606
- <p
607
- class = " mm-box mm-text mm-text--body-md mm-box--color-text-default"
658
+ <a
659
+ class = " mm-box mm-text mm-button-base asset-page__spending-caps mm-text--body-md-medium mm-button-link mm-button-link--size-auto mm-text--body-md-medium mm-box--padding-0 mm-box--padding-right-0 mm-box--padding-left-0 mm-box--display-inline-flex mm-box--justify-content-center mm-box--align-items-center mm-box--color-primary-default mm-box--background-color-transparent"
660
+ href = " https://portfolio.test/?metamaskEntry=asset_page& metametricsId=& metricsEnabled=false& marketingEnabled=false& accountAddress=0x1& tab=spending-caps"
661
+ rel = " noopener noreferrer"
662
+ target = " _blank"
608
663
>
609
- 18
610
- </p >
664
+ Edit in Portfolio
665
+ </a >
611
666
</div >
612
667
</div >
613
668
</div >
@@ -1038,59 +1093,84 @@ exports[`AssetPage should render an ERC20 token with prices 1`] = `
1038
1093
Token details
1039
1094
</h3 >
1040
1095
<div
1041
- class = " mm-box mm-box--display-flex mm-box--justify-content-space-between "
1096
+ class = " mm-box mm-box--display-flex mm-box--gap-2 mm-box--flex-direction-column "
1042
1097
>
1043
- <p
1044
- class = " mm-box mm-text mm-text--body-md-medium mm-box--color-text-alternative "
1098
+ <div
1099
+ class = " mm-box"
1045
1100
>
1046
- Contract address
1047
- </p >
1048
- <div >
1049
1101
<div
1050
- aria-describedby = " tippy-tooltip-10"
1051
- class = " "
1052
- data-original-title = " Copy to clipboard"
1053
- data-tooltipped = " "
1054
- style = " display: inline;"
1055
- tabindex = " 0"
1102
+ class = " mm-box mm-box--display-flex mm-box--justify-content-space-between"
1056
1103
>
1057
- <button
1058
- class = " mm-box mm-text mm-button-base mm-button-base--size-sm multichain-address-copy-button mm-text--body-sm mm-box--padding-0 mm-box--padding-right-4 mm-box--padding-left-4 mm-box--display-inline-flex mm-box--justify-content-center mm-box--align-items-center mm-box--color-primary-default mm-box--background-color-primary-muted mm-box--rounded-pill"
1059
- data-testid = " address-copy-button-text"
1104
+ <p
1105
+ class = " mm-box mm-text mm-text--body-md-medium mm-box--color-text-alternative"
1060
1106
>
1061
- <span
1062
- class = " mm-box mm-text mm-text--inherit mm-box--color-primary-default"
1107
+ Contract address
1108
+ </p >
1109
+ <div >
1110
+ <div
1111
+ aria-describedby = " tippy-tooltip-10"
1112
+ class = " "
1113
+ data-original-title = " Copy to clipboard"
1114
+ data-tooltipped = " "
1115
+ style = " display: inline;"
1116
+ tabindex = " 0"
1063
1117
>
1064
- <div
1065
- class = " mm-box mm-box--display-flex"
1118
+ <button
1119
+ class = " mm-box mm-text mm-button-base mm-button-base--size-sm multichain-address-copy-button mm-text--body-sm mm-box--padding-0 mm-box--padding-right-4 mm-box--padding-left-4 mm-box--display-inline-flex mm-box--justify-content-center mm-box--align-items-center mm-box--color-primary-default mm-box--background-color-primary-muted mm-box--rounded-pill"
1120
+ data-testid = " address-copy-button-text"
1066
1121
>
1067
- 0xe4246...85f55
1068
- </div >
1069
- </span >
1070
- <span
1071
- class = " mm-box mm-icon mm-icon--size-sm mm-box--margin-inline-start-1 mm-box--display-inline-block mm-box--color-inherit"
1072
- style = " mask-image: url('./images/icons/copy.svg');"
1073
- />
1074
- </button >
1122
+ <span
1123
+ class = " mm-box mm-text mm-text--inherit mm-box--color-primary-default"
1124
+ >
1125
+ <div
1126
+ class = " mm-box mm-box--display-flex"
1127
+ >
1128
+ 0xe4246...85f55
1129
+ </div >
1130
+ </span >
1131
+ <span
1132
+ class = " mm-box mm-icon mm-icon--size-sm mm-box--margin-inline-start-1 mm-box--display-inline-block mm-box--color-inherit"
1133
+ style = " mask-image: url('./images/icons/copy.svg');"
1134
+ />
1135
+ </button >
1136
+ </div >
1137
+ </div >
1138
+ </div >
1139
+ <div
1140
+ class = " mm-box mm-box--display-flex mm-box--gap-2 mm-box--flex-direction-column"
1141
+ >
1142
+ <div
1143
+ class = " mm-box mm-box--display-flex mm-box--justify-content-space-between"
1144
+ >
1145
+ <p
1146
+ class = " mm-box mm-text mm-text--body-md-medium mm-box--color-text-alternative"
1147
+ >
1148
+ Token decimal
1149
+ </p >
1150
+ <p
1151
+ class = " mm-box mm-text mm-text--body-md mm-box--color-text-default"
1152
+ >
1153
+ 18
1154
+ </p >
1155
+ </div >
1075
1156
</div >
1076
1157
</div >
1077
- </div >
1078
- <div
1079
- class = " mm-box mm-box--display-flex mm-box--gap-2 mm-box--flex-direction-column"
1080
- >
1081
1158
<div
1082
1159
class = " mm-box mm-box--display-flex mm-box--justify-content-space-between"
1083
1160
>
1084
1161
<p
1085
1162
class = " mm-box mm-text mm-text--body-md-medium mm-box--color-text-alternative"
1086
1163
>
1087
- Token decimal
1164
+ Spending caps
1088
1165
</p >
1089
- <p
1090
- class = " mm-box mm-text mm-text--body-md mm-box--color-text-default"
1166
+ <a
1167
+ class = " mm-box mm-text mm-button-base asset-page__spending-caps mm-text--body-md-medium mm-button-link mm-button-link--size-auto mm-text--body-md-medium mm-box--padding-0 mm-box--padding-right-0 mm-box--padding-left-0 mm-box--display-inline-flex mm-box--justify-content-center mm-box--align-items-center mm-box--color-primary-default mm-box--background-color-transparent"
1168
+ href = " https://portfolio.test/?metamaskEntry=asset_page& metametricsId=& metricsEnabled=false& marketingEnabled=false& accountAddress=0x1& tab=spending-caps"
1169
+ rel = " noopener noreferrer"
1170
+ target = " _blank"
1091
1171
>
1092
- 18
1093
- </p >
1172
+ Edit in Portfolio
1173
+ </a >
1094
1174
</div >
1095
1175
</div >
1096
1176
</div >
0 commit comments