1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/components/app/signature-request-siwe
Ariella Vu 5e3770eb13
Replace ActionableMessage components with BannerAlerts in SIWE Sign-in with Ethereum page (#18207)
* siwe: re-enable warning UI for mismatched domains
- unblocks mismatched domain support
- we may re-add error handling here #18184
- reverts logic from #16616

* siwe: fix mismatch domain warning msg UI

* lint: rm whitespace EOL

* siwe: rm unit test

* lint: fix whitespace

* Icon: support .mm-icon
- apply to SIWE actionable-message
- .mm-icon is a <span>

* lint: fix newline

* Revert "siwe: rm unit test"

This reverts commit c80a4a2e661609c46c76d1e43e05909b6db3f0f5.

* ActionableMessage: add deprecation

* siwe: replace actionable-msg w/ banner-alert

* ActionableMessage: add param for lint

* revert .mm_icon ActionableMessage support

* siwe: create tests

* siwe: fix typo in tests

* siwe: fix - do not allow nested <p> elements

* Update ui/components/app/signature-request-siwe/signature-request-siwe.js

Co-authored-by: George Marshall <george.marshall@consensys.net>

* Update ui/components/app/signature-request-siwe/signature-request-siwe.js

Co-authored-by: George Marshall <george.marshall@consensys.net>

* eslint fix

---------

Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
Co-authored-by: George Marshall <george.marshall@consensys.net>
2023-03-21 09:49:04 -07:00
..
__snapshots__ Replace ActionableMessage components with BannerAlerts in SIWE Sign-in with Ethereum page (#18207) 2023-03-21 09:49:04 -07:00
signature-request-siwe-header Added storybook check to CI (#17092) 2023-01-21 00:57:46 +05:30
signature-request-siwe-icon feature: migrate design-system.ts (#17518) 2023-02-02 20:15:26 +00:00
signature-request-siwe-message feature: migrate design-system.ts (#17518) 2023-02-02 20:15:26 +00:00
signature-request-siwe-tag feature: migrate design-system.ts (#17518) 2023-02-02 20:15:26 +00:00
index.js Add Sign-In with Ethereum (#14438) 2022-08-03 09:56:11 -05:00
index.scss Replace ActionableMessage components with BannerAlerts in SIWE Sign-in with Ethereum page (#18207) 2023-03-21 09:49:04 -07:00
README.mdx Added storybook check to CI (#17092) 2023-01-21 00:57:46 +05:30
signature-request-siwe.js Replace ActionableMessage components with BannerAlerts in SIWE Sign-in with Ethereum page (#18207) 2023-03-21 09:49:04 -07:00
signature-request-siwe.stories.js Added storybook check to CI (#17092) 2023-01-21 00:57:46 +05:30
signature-request-siwe.test.js Replace ActionableMessage components with BannerAlerts in SIWE Sign-in with Ethereum page (#18207) 2023-03-21 09:49:04 -07:00

import { Story, Canvas, ArgsTable } from '@storybook/addon-docs';

import SignatureRequestSIWE from '.';

# Signature Request SIWE

dApp requesting the user to Sign in with Ethereum.

<Canvas>
  <Story id="components-app-signaturerequestsiwe--default-story" />
</Canvas>

## Component API

<ArgsTable of={SignatureRequestSIWE} />