2023-04-19 01:23:45 +02:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`CustomSpendingCap should match snapshot 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="box custom-spending-cap box--padding-top-2 box--padding-right-6 box--padding-left-6 box--display-flex box--gap-2 box--flex-direction-column box--align-items-flex-start box--background-color-background-alternative box--rounded-sm"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="box custom-spending-cap__input box--display-block box--flex-direction-row box--justify-content-center"
|
|
|
|
>
|
|
|
|
<label
|
|
|
|
for="custom-spending-cap"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="form-field"
|
|
|
|
>
|
|
|
|
<div
|
2023-06-26 18:29:33 +02:00
|
|
|
class="mm-box"
|
2023-04-19 01:23:45 +02:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="form-field__heading"
|
|
|
|
>
|
|
|
|
<div
|
2023-06-26 18:29:33 +02:00
|
|
|
class="mm-box form-field__heading-title mm-box--display-flex mm-box--align-items-baseline"
|
2023-04-19 01:23:45 +02:00
|
|
|
>
|
|
|
|
<h6
|
2023-04-29 01:18:46 +02:00
|
|
|
class="box mm-text mm-text--body-sm-bold box--display-inline-block box--flex-direction-row box--color-text-default"
|
|
|
|
for="custom-spending-cap"
|
|
|
|
tag="label"
|
2023-04-19 01:23:45 +02:00
|
|
|
>
|
|
|
|
Custom spending cap
|
|
|
|
</h6>
|
|
|
|
|
|
|
|
<div
|
|
|
|
class="box box--display-inline-block box--flex-direction-row"
|
|
|
|
>
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
aria-describedby="tippy-tooltip-1"
|
|
|
|
class=""
|
|
|
|
data-original-title="null"
|
|
|
|
data-tooltipped=""
|
|
|
|
style="display: inline;"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<span
|
2023-04-19 23:16:49 +02:00
|
|
|
class="box mm-icon mm-icon--size-inherit box--display-inline-block box--flex-direction-row box--color-inherit"
|
2023-04-19 01:23:45 +02:00
|
|
|
style="mask-image: url('./images/icons/question.svg');"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<input
|
|
|
|
class="form-field__input"
|
|
|
|
data-testid="custom-spending-cap-input"
|
|
|
|
id="custom-spending-cap"
|
|
|
|
placeholder="Enter a number"
|
|
|
|
type="text"
|
2023-07-11 16:57:59 +02:00
|
|
|
value="7"
|
2023-04-19 01:23:45 +02:00
|
|
|
/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="box custom-spending-cap__max box--margin-left-auto box--padding-right-4 box--padding-bottom-2 box--flex-direction-row box--text-align-end box--width-max"
|
|
|
|
>
|
|
|
|
<button
|
2023-07-17 23:00:16 +02:00
|
|
|
class="mm-box mm-text mm-button-base mm-button-link mm-button-link--size-auto mm-text--body-md-medium 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"
|
2023-04-19 01:23:45 +02:00
|
|
|
>
|
|
|
|
Max
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="box custom-spending-cap__description box--flex-direction-row"
|
|
|
|
>
|
|
|
|
<h6
|
2023-07-11 16:57:59 +02:00
|
|
|
class="box mm-text mm-text--body-sm box--padding-top-2 box--flex-direction-row box--color-text-default"
|
2023-04-19 01:23:45 +02:00
|
|
|
>
|
|
|
|
<span>
|
|
|
|
|
|
|
|
This allows the third party to spend
|
|
|
|
<h6
|
|
|
|
class="box mm-text custom-spending-cap__input-value-and-token-name mm-text--body-sm-bold box--flex-direction-row box--color-text-default"
|
|
|
|
>
|
2023-07-11 16:57:59 +02:00
|
|
|
7
|
2023-04-19 01:23:45 +02:00
|
|
|
|
|
|
|
TST
|
|
|
|
</h6>
|
|
|
|
from your current balance.
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</h6>
|
2023-07-11 16:57:59 +02:00
|
|
|
<a
|
2023-07-17 23:00:16 +02:00
|
|
|
class="mm-box mm-text mm-button-base mm-button-base--size-sm mm-button-link mm-text--body-md-medium mm-box--margin-bottom-2 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"
|
2023-07-11 16:57:59 +02:00
|
|
|
href="https://support.metamask.io/hc/en-us/articles/6055177143579-How-to-customize-token-approvals-with-a-spending-cap"
|
|
|
|
target="_blank"
|
|
|
|
>
|
|
|
|
Learn more
|
|
|
|
</a>
|
2023-04-19 01:23:45 +02:00
|
|
|
</div>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|