mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
9f89d71c6f
* MMI-2657 adds the compliance settings screen * MMI-2657 adds stories file * review fixes * review fixes * lint fix * clean up * Update ui/components/institutional/compliance-settings/compliance-settings.stories.js Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net> * lint fix * snaps update * Button update --------- Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
93 lines
3.6 KiB
Plaintext
93 lines
3.6 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Compliance Settings shows disconnect when Compliance is activated 1`] = `
|
|
<div>
|
|
<div
|
|
class="box box--flex-direction-row"
|
|
>
|
|
<h6
|
|
class="box mm-text institutional-feature__content mm-text--body-sm box--flex-direction-row box--color-text-default"
|
|
>
|
|
Change your settings or view reports by opening up Codefi Compliance or disconnect below.
|
|
</h6>
|
|
<div
|
|
class="box institutional-feature__footer box--padding-4 box--sm:padding-6 box--flex-direction-row box--border-style-solid box--border-color-border-muted box--border-width-1"
|
|
>
|
|
<button
|
|
class="box mm-text mm-button-base mm-button-base--size-lg mm-button-primary 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"
|
|
data-testid="disconnect-compliance"
|
|
>
|
|
Disconnect
|
|
</button>
|
|
<button
|
|
class="box mm-text mm-button-base mm-button-base--size-lg mm-button-link 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"
|
|
data-testid="start-compliance"
|
|
>
|
|
Open Codefi Compliance
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`Compliance Settings shows start btn when Compliance its not activated 1`] = `
|
|
<div>
|
|
<div
|
|
class="box box--sm:padding-6 box--flex-direction-row box--color-text-alternative"
|
|
data-testid="institutional-content"
|
|
>
|
|
<div
|
|
class="box institutional-feature__content box--flex-direction-row"
|
|
variant="body-sm"
|
|
>
|
|
<p
|
|
class="box mm-text mm-text--body-md box--padding-bottom-3 box--flex-direction-row box--color-text-default"
|
|
>
|
|
DeFi raises AML/CFT risk for institutions, given the decentralised pools and pseudonymous counterparties.
|
|
</p>
|
|
<p
|
|
class="box mm-text mm-text--body-md box--padding-bottom-3 box--flex-direction-row box--color-text-default"
|
|
>
|
|
Codefi Compliance is the only product capable of running AML/CFT analysis on DeFi pools. This allows you to identify and avoid pools and counterparties that fail your risk setting.
|
|
</p>
|
|
<p
|
|
class="box mm-text mm-text--body-md box--padding-bottom-3 box--flex-direction-row box--color-text-default"
|
|
>
|
|
Steps to enable AML/CFT Compliance:
|
|
</p>
|
|
<ol>
|
|
<li>
|
|
Sign up to Codefi Compliance below
|
|
</li>
|
|
<li>
|
|
Create an organisation
|
|
</li>
|
|
<li>
|
|
Create a project
|
|
</li>
|
|
<li>
|
|
Set your compliance settings
|
|
</li>
|
|
<li>
|
|
Click the "Enable Compliance in MMI" button
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
<div
|
|
class="box box--display-flex box--flex-direction-row box--justify-content-center"
|
|
>
|
|
<div
|
|
class="box institutional-feature__footer box--padding-4 box--sm:padding-6 box--flex-direction-row box--border-style-solid box--border-color-border-muted box--border-width-1"
|
|
>
|
|
<button
|
|
class="box mm-text mm-button-base mm-button-base--size-lg mm-button-link 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"
|
|
data-testid="start-compliance"
|
|
>
|
|
Open Codefi Compliance
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|