mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 15:50:28 +01:00
c1c6c8237a
* Update Label component font weight from bold to medium * update snapshot * fix snapshots * fix snapshots 2 * Removeing deprecated constants for enums --------- Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
94 lines
4.5 KiB
Plaintext
94 lines
4.5 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Eth Sign Modal should match snapshot 1`] = `
|
|
<div>
|
|
<div
|
|
class="box eth-sign-modal box--padding-4 box--display-flex box--flex-direction-column box--justify-content-flex-start"
|
|
>
|
|
<div
|
|
class="box box--margin-bottom-4 box--display-flex box--flex-direction-row box--justify-content-center"
|
|
>
|
|
<span
|
|
class="box eth-sign-modal__warning-icon mm-icon mm-icon--size-lg box--display-inline-block box--flex-direction-row box--color-error-default"
|
|
style="mask-image: url('./images/icons/danger.svg');"
|
|
/>
|
|
<button
|
|
aria-label="Close"
|
|
class="box mm-button-icon mm-button-icon--size-sm eth-sign-modal__close box--display-inline-flex box--flex-direction-row box--justify-content-center box--align-items-center box--color-icon-default box--background-color-transparent box--rounded-lg"
|
|
>
|
|
<span
|
|
class="box mm-icon mm-icon--size-sm box--display-inline-block box--flex-direction-row box--color-inherit"
|
|
style="mask-image: url('./images/icons/close.svg');"
|
|
/>
|
|
</button>
|
|
</div>
|
|
<h3
|
|
class="box mm-text mm-text--heading-md mm-text--text-align-center box--margin-bottom-6 box--flex-direction-row box--color-text-default"
|
|
>
|
|
Use at your own risk
|
|
</h3>
|
|
<p
|
|
class="box mm-text mm-text--body-md box--flex-direction-row box--color-text-default"
|
|
>
|
|
Allowing eth_sign requests can make you vulnerable to phishing attacks. Always review the URL and be careful when signing messages that contain code.
|
|
<a
|
|
class="box mm-text mm-button-base mm-button-link mm-button-link--size-auto mm-text--body-md box--display-inline-flex box--flex-direction-row box--justify-content-center box--align-items-center box--color-primary-default box--background-color-transparent"
|
|
href="https://support.metamask.io/hc/en-us/articles/14764161421467"
|
|
rel="noopener noreferrer"
|
|
target="_blank"
|
|
>
|
|
Learn more
|
|
</a>
|
|
</p>
|
|
<div
|
|
class="box mm-banner-base mm-banner-alert mm-banner-alert--severity-danger box--margin-top-6 box--margin-bottom-6 box--padding-3 box--padding-left-2 box--display-flex box--gap-2 box--flex-direction-row box--background-color-error-muted box--rounded-sm"
|
|
>
|
|
<span
|
|
class="box mm-icon mm-icon--size-lg box--display-inline-block box--flex-direction-row box--color-error-default"
|
|
style="mask-image: url('./images/icons/danger.svg');"
|
|
/>
|
|
<div>
|
|
If you've been asked to turn this setting on,
|
|
you might be getting scammed
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="box box--gap-2 box--flex-direction-row box--align-items-flex-start box--display-flex"
|
|
>
|
|
<input
|
|
class="check-box eth-sign__checkbox far fa-square"
|
|
data-testid="eth-sign__checkbox"
|
|
id="eth-sign__checkbox"
|
|
readonly=""
|
|
type="checkbox"
|
|
/>
|
|
<label
|
|
class="box mm-text mm-label mm-label--html-for mm-text--body-md mm-text--font-weight-medium box--display-inline-flex box--flex-direction-row box--align-items-center box--color-text-default"
|
|
for="eth-sign__checkbox"
|
|
>
|
|
<span
|
|
class="box mm-text mm-text--body-md box--flex-direction-row box--color-text-default"
|
|
>
|
|
I understand that I can lose all of my funds and NFTs if I enable eth_sign requests.
|
|
</span>
|
|
</label>
|
|
</div>
|
|
<div
|
|
class="box box--margin-top-6 box--display-flex box--gap-4 box--flex-direction-row box--justify-content-space-between"
|
|
>
|
|
<button
|
|
class="box mm-text mm-button-base mm-button-base--size-lg mm-button-base--block mm-button-secondary mm-text--body-md box--padding-right-4 box--padding-left-4 box--display-inline-flex box--flex-direction-row box--justify-content-center box--align-items-center box--color-primary-default box--background-color-transparent box--rounded-pill box--border-color-primary-default box--border-style-solid box--border-width-1"
|
|
>
|
|
Cancel
|
|
</button>
|
|
<button
|
|
class="box mm-text mm-button-base mm-button-base--size-lg mm-button-base--disabled mm-button-base--block mm-button-primary mm-button-primary--disabled mm-text--body-md box--padding-right-4 box--padding-left-4 box--display-inline-flex box--flex-direction-row box--justify-content-center box--align-items-center box--color-primary-inverse box--background-color-primary-default box--rounded-pill"
|
|
disabled=""
|
|
>
|
|
Continue
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|