mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-05 07:24:56 +01:00
057188d155
* Started adding code fences in signature-request * Finished code fencing * Improving code * Fixed storybook and code fences bundle * Added missing dependency * Fixed yarn.lock * Fixing policies * Updated package.json * updating lavamoat * lavamoat fix * adds missing package * runs yarn dedupe * updates method name * run lavamoat:auto again * Added more code fences * updates snapshot * snapshot updates * updates mmi packages to lighter versions * updates mmi packages * runs lavamoat auto * updates yarn lock and runs lavamoat auto * updates yarn lock * updates targets file * Removed console log and added tests --------- Co-authored-by: António Regadas <apregadas@gmail.com> Co-authored-by: Brad Decker <bhdecker84@gmail.com> Co-authored-by: Antonio Regadas <antonio.regadas@consensys.net>
137 lines
4.1 KiB
Plaintext
137 lines
4.1 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`SignatureRequestHeader renders correctly with fromAccount 1`] = `
|
|
<div>
|
|
<div
|
|
class="signature-request-header"
|
|
>
|
|
<div
|
|
class="signature-request-header--account"
|
|
>
|
|
<div
|
|
class="account-list-item undefined"
|
|
data-testid="account-list-item"
|
|
>
|
|
<div
|
|
class="account-list-item__top-row"
|
|
>
|
|
<div
|
|
class=""
|
|
>
|
|
<div
|
|
class="identicon account-list-item__identicon"
|
|
style="height: 18px; width: 18px; border-radius: 9px;"
|
|
>
|
|
<div
|
|
style="border-radius: 50px; overflow: hidden; padding: 0px; margin: 0px; width: 18px; height: 18px; display: inline-block; background: rgb(24, 151, 242);"
|
|
>
|
|
<svg
|
|
height="18"
|
|
width="18"
|
|
x="0"
|
|
y="0"
|
|
>
|
|
<rect
|
|
fill="#2362E1"
|
|
height="18"
|
|
transform="translate(2.018998228945791 -3.0005497255688565) rotate(458.4 9 9)"
|
|
width="18"
|
|
x="0"
|
|
y="0"
|
|
/>
|
|
<rect
|
|
fill="#F94301"
|
|
height="18"
|
|
transform="translate(-8.641945850428243 4.495697794961231) rotate(268.8 9 9)"
|
|
width="18"
|
|
x="0"
|
|
y="0"
|
|
/>
|
|
<rect
|
|
fill="#FA7900"
|
|
height="18"
|
|
transform="translate(-5.10539291960705 16.582508932884398) rotate(117.3 9 9)"
|
|
width="18"
|
|
x="0"
|
|
y="0"
|
|
/>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="account-list-item__account-name"
|
|
>
|
|
0x
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="signature-request-header--network"
|
|
>
|
|
<div
|
|
class="network-display chip chip--with-left-icon chip--border-color-border-muted chip--background-color-undefined chip--max-content"
|
|
data-testid="network-display"
|
|
>
|
|
<div
|
|
class="chip__left-icon"
|
|
>
|
|
<div
|
|
class="color-indicator color-indicator--filled color-indicator--color-icon-muted color-indicator--size-lg"
|
|
data-testid="color-icon-icon-muted"
|
|
>
|
|
<i
|
|
class="color-indicator__icon fa fa-question"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<span
|
|
class="box box--margin-top-1 box--margin-bottom-1 box--flex-direction-row typography chip__label typography--h7 typography--weight-normal typography--style-normal typography--color-text-alternative"
|
|
>
|
|
Private network
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`SignatureRequestHeader renders correctly without fromAccount 1`] = `
|
|
<div>
|
|
<div
|
|
class="signature-request-header"
|
|
>
|
|
<div
|
|
class="signature-request-header--account"
|
|
/>
|
|
<div
|
|
class="signature-request-header--network"
|
|
>
|
|
<div
|
|
class="network-display chip chip--with-left-icon chip--border-color-border-muted chip--background-color-undefined chip--max-content"
|
|
data-testid="network-display"
|
|
>
|
|
<div
|
|
class="chip__left-icon"
|
|
>
|
|
<div
|
|
class="color-indicator color-indicator--filled color-indicator--color-icon-muted color-indicator--size-lg"
|
|
data-testid="color-icon-icon-muted"
|
|
>
|
|
<i
|
|
class="color-indicator__icon fa fa-question"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<span
|
|
class="box box--margin-top-1 box--margin-bottom-1 box--flex-direction-row typography chip__label typography--h7 typography--weight-normal typography--style-normal typography--color-text-alternative"
|
|
>
|
|
Private network
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|