mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 23:58:06 +01:00
c52d2131d3
* Added confirm add institutional feature page * Finished implementing component * Added all institutional ducks * Fixed tests * Removed ducks and console log * Fixed snapshots * Fixed messages json * Changed method name and using useEffect * Replace useEffect hook with a simple if statement to check if connectRequest exists and add null return statement to avoid warnings * Remove unneeded dependency * Added back useEffect and added a extra check to return null if connectRequest is false * Fixed eslint problem * Fixed all issues commented in the pr
68 lines
2.0 KiB
Plaintext
68 lines
2.0 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||
|
||
exports[`Confirm Add Institutional Feature opens confirm institutional sucessfully 1`] = `
|
||
<div>
|
||
<div
|
||
class="box page-container box--flex-direction-row"
|
||
data-testid="confirm-add-institutional-feature"
|
||
>
|
||
<div
|
||
class="box page-container__header box--flex-direction-row"
|
||
>
|
||
<p
|
||
class="box mm-text page-container__title mm-text--body-md box--flex-direction-row box--color-text-default"
|
||
>
|
||
Institutional Features
|
||
</p>
|
||
<p
|
||
class="box mm-text page-container__subtitle mm-text--body-md box--flex-direction-row box--color-text-default"
|
||
>
|
||
The page at origin would like to authorise the following project’s compliance settings in MetaMask Institutional
|
||
</p>
|
||
</div>
|
||
<div
|
||
class="box page-container__content box--flex-direction-row"
|
||
>
|
||
<p
|
||
class="box mm-text mm-text--body-sm box--margin-top-3 box--margin-right-8 box--margin-left-8 box--flex-direction-row box--color-text-default"
|
||
>
|
||
Project Name
|
||
</p>
|
||
<p
|
||
class="box mm-text mm-text--body-lg-medium mm-text--overflow-wrap-break-word box--margin-top-1 box--margin-right-8 box--margin-bottom-1 box--margin-left-8 box--flex-direction-row box--color-text-default"
|
||
>
|
||
projectName
|
||
</p>
|
||
<p
|
||
class="box mm-text mm-text--body-xs mm-text--overflow-wrap-break-word box--margin-right-8 box--margin-left-8 box--flex-direction-row box--color-text-muted"
|
||
>
|
||
Id
|
||
:
|
||
projectId
|
||
</p>
|
||
</div>
|
||
|
||
<div
|
||
class="box page-container__footer box--flex-direction-row"
|
||
>
|
||
<footer>
|
||
<button
|
||
class="button btn--rounded btn-default btn--large"
|
||
role="button"
|
||
tabindex="0"
|
||
>
|
||
Cancel
|
||
</button>
|
||
<button
|
||
class="button btn--rounded btn-primary btn--large"
|
||
role="button"
|
||
tabindex="0"
|
||
>
|
||
Confirm
|
||
</button>
|
||
</footer>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
`;
|