diff --git a/packages/yoroi-extension/app/components/transfer/ErrorPage.scss b/packages/yoroi-extension/app/components/transfer/ErrorPage.scss
index c0ac735a62..af65710ca6 100644
--- a/packages/yoroi-extension/app/components/transfer/ErrorPage.scss
+++ b/packages/yoroi-extension/app/components/transfer/ErrorPage.scss
@@ -5,6 +5,7 @@
height: 100%;
align-items: center;
justify-content: center;
+ max-width: 600px;
}
.body {
diff --git a/packages/yoroi-extension/app/components/transfer/SuccessPageRevamp.js b/packages/yoroi-extension/app/components/transfer/SuccessPageRevamp.js
index a7e292ddbc..e89d2387a8 100644
--- a/packages/yoroi-extension/app/components/transfer/SuccessPageRevamp.js
+++ b/packages/yoroi-extension/app/components/transfer/SuccessPageRevamp.js
@@ -7,7 +7,7 @@ import DialogCloseButton from '../widgets/DialogCloseButton';
import LoadingSpinner from '../widgets/LoadingSpinner';
import { Box, Typography } from '@mui/material';
import { ReactComponent as SuccessImg } from '../../assets/images/transfer-success.inline.svg';
-import DialogRevamp from '../widgets/DialogRevamp';
+import Dialog from '../widgets/Dialog';
type Props = {|
+title: string,
@@ -38,7 +38,7 @@ export class SuccessPageRevamp extends Component
{
];
return (
- {
>
-
+
{text}
{this.props.closeInfo == null && }
-
+
);
}
}
diff --git a/packages/yoroi-extension/app/components/uri/URIDisplayDialog.js b/packages/yoroi-extension/app/components/uri/URIDisplayDialog.js
index cf992d525a..afd571598a 100644
--- a/packages/yoroi-extension/app/components/uri/URIDisplayDialog.js
+++ b/packages/yoroi-extension/app/components/uri/URIDisplayDialog.js
@@ -1,21 +1,22 @@
// @flow
import type { Node } from 'react';
+import type { Notification } from '../../types/notificationType';
+import type { $npm$ReactIntl$IntlFormat } from 'react-intl';
import { Component } from 'react';
-import classnames from 'classnames';
import { observer } from 'mobx-react';
import { intlShape, defineMessages } from 'react-intl';
import { buildURI } from '../../utils/URIHandling';
+import { ReactComponent as InfoIcon } from '../../assets/images/revamp/icons/info.inline.svg';
+import { Box, Typography } from '@mui/material';
+import classnames from 'classnames';
import Dialog from '../widgets/Dialog';
import DialogBackButton from '../widgets/DialogBackButton';
import DialogCloseButton from '../widgets/DialogCloseButton';
import QrCodeWrapper from '../widgets/QrCodeWrapper';
-import WarningBox from '../widgets/WarningBox';
import CopyableAddress from '../widgets/CopyableAddress';
-import type { Notification } from '../../types/notificationType';
-import type { $npm$ReactIntl$IntlFormat } from 'react-intl';
import BigNumber from 'bignumber.js';
-
import styles from './URIDisplayDialog.scss';
+import globalMessages from '../../i18n/global-messages';
const messages = defineMessages({
uriDisplayDialogTitle: {
@@ -28,8 +29,9 @@ const messages = defineMessages({
},
usabilityWarning: {
id: 'uri.display.dialog.usabilityWarning',
- defaultMessage: '!!!This link can only be opened by users with Yoroi installed on their browser',
- }
+ defaultMessage:
+ '!!!This link can only be opened by users with Yoroi installed on their browser',
+ },
});
type Props = {|
@@ -43,32 +45,18 @@ type Props = {|
@observer
export default class URIDisplayDialog extends Component {
-
- static contextTypes: {|intl: $npm$ReactIntl$IntlFormat|} = {
+ static contextTypes: {| intl: $npm$ReactIntl$IntlFormat |} = {
intl: intlShape.isRequired,
};
render(): Node {
- const {
- onClose,
- onBack,
- notification,
- onCopyAddressTooltip,
- address,
- amount,
- } = this.props;
+ const { onClose, onBack, notification, onCopyAddressTooltip, address, amount } = this.props;
const { intl } = this.context;
const uri = buildURI(address, amount);
const uriNotificationId = 'uri-copyNotification';
- const uriUsabilityWarning = (
-
- {intl.formatMessage(messages.usabilityWarning)}
-
- );
-
return (
-
);
}
-
}
diff --git a/packages/yoroi-extension/app/components/uri/URIDisplayDialog.scss b/packages/yoroi-extension/app/components/uri/URIDisplayDialog.scss
index 8b7083b8cc..053c5fd381 100644
--- a/packages/yoroi-extension/app/components/uri/URIDisplayDialog.scss
+++ b/packages/yoroi-extension/app/components/uri/URIDisplayDialog.scss
@@ -1,38 +1,27 @@
.component {
- min-width: var(--yoroi-comp-dialog-min-width-lg) !important;
- max-width: var(--yoroi-comp-dialog-min-width-lg) !important;
-
:global {
.Dialog_title {
margin-bottom: 24px;
}
-
- .CopyableAddress_copyIconBig {
- & > svg {
- margin-top: -7px;
- }
- }
}
.uriDisplay {
- width: 90%;
margin-left: auto;
margin-right: auto;
- margin-bottom: 24px;
display: flex;
- align-items: center;
+ align-items: flex-start;
.uri {
font-weight: 400;
word-break: break-all;
font-size: 16px;
line-height: 24px;
- text-align: center;
+ text-align: left;
}
}
.qrCode {
- margin: 34px auto 20px auto;
+ margin: 24px auto;
text-align: center;
}
}
diff --git a/packages/yoroi-extension/app/components/uri/URIGenerateDialog.js b/packages/yoroi-extension/app/components/uri/URIGenerateDialog.js
index 9b9bb35013..af5d20f7a7 100644
--- a/packages/yoroi-extension/app/components/uri/URIGenerateDialog.js
+++ b/packages/yoroi-extension/app/components/uri/URIGenerateDialog.js
@@ -22,7 +22,8 @@ import { getTokenName } from '../../stores/stateless/tokenHelpers';
import BigNumber from 'bignumber.js';
import styles from './URIGenerateDialog.scss';
-import ThemedDialog from '../widgets/ThemedDialog';
+// import ThemedDialog from '../widgets/ThemedDialog';
+import Dialog from '../widgets/Dialog';
const messages = defineMessages({
uriGenerateDialogTitle: {
@@ -140,7 +141,7 @@ export default class URIGenerateDialog extends Component {
];
return (
- {
/>