- {intl.formatMessage(this.props.error, this.props.error.values)} -
- ) - : null - } - + {this.props.error ? ( ++ {intl.formatMessage(this.props.error, this.props.error.values)} +
+ ) : null} ); } diff --git a/packages/yoroi-extension/app/components/widgets/Dialog.js b/packages/yoroi-extension/app/components/widgets/Dialog.js index cdc60f0a13..352288533a 100644 --- a/packages/yoroi-extension/app/components/widgets/Dialog.js +++ b/packages/yoroi-extension/app/components/widgets/Dialog.js @@ -137,7 +137,7 @@ const ModalContainer = styled(Box)(({ theme }) => ({ minWidth: 'var(--yoroi-comp-dialog-min-width-md)', borderRadius: theme.name === 'classic' ? 0 : 8, paddingTop: theme.name === 'classic' ? '25px' : '24px', - paddingBottom: theme.name === 'classic' ? '30px' : '40px', + paddingBottom: theme.name === 'classic' ? '30px' : '24px', maxWidth: theme.name === 'classic' ? '785px' : '560px', backgroundColor: 'var(--yoroi-comp-dialog-background)', color: 'var(--yoroi-comp-dialog-text)', @@ -157,16 +157,16 @@ const ModalContent = styled(Box)(({ theme }) => ({ overflowX: 'hidden', overflowY: 'overlay', maxHeight: '60vh', - paddingLeft: theme.name === 'classic' ? '30px' : '40px', - paddingRight: theme.name === 'classic' ? '30px' : '40px', + paddingLeft: theme.name === 'classic' ? '30px' : '24px', + paddingRight: theme.name === 'classic' ? '30px' : '24px', })); const ModalFooter = styled(Box)(({ theme }) => ({ display: 'flex', - paddingLeft: theme.name === 'classic' ? '30px' : '40px', - paddingRight: theme.name === 'classic' ? '30px' : '40px', + paddingLeft: theme.name === 'classic' ? '30px' : '24px', + paddingRight: theme.name === 'classic' ? '30px' : '24px', marginTop: theme.name === 'classic' ? '20px' : '34px', '& button': { - width: ' 50%', + width: '50%', '&:only-child': { margin: 'auto', width: '100%', diff --git a/packages/yoroi-extension/app/containers/wallet/dialogs/voting/RegisterDialogContainer.js b/packages/yoroi-extension/app/containers/wallet/dialogs/voting/RegisterDialogContainer.js index 71feee92d5..cf7b12d0e3 100644 --- a/packages/yoroi-extension/app/containers/wallet/dialogs/voting/RegisterDialogContainer.js +++ b/packages/yoroi-extension/app/containers/wallet/dialogs/voting/RegisterDialogContainer.js @@ -1,19 +1,20 @@ // @flow -import type { Node } from 'react'; +import type { Node, ComponentType } from 'react'; +import type { $npm$ReactIntl$IntlFormat } from 'react-intl'; +import type { InjectedOrGenerated } from '../../../../types/injectedPropsType'; +import type { StepsList } from '../../../../components/wallet/voting/types'; import { Component } from 'react'; import { observer } from 'mobx-react'; import { computed } from 'mobx'; import { intlShape } from 'react-intl'; -import type { $npm$ReactIntl$IntlFormat } from 'react-intl'; +import { ProgressInfo } from '../../../../stores/ada/VotingStore'; +import { withLayout } from '../../../../styles/context/layout'; import globalMessages from '../../../../i18n/global-messages'; import DialogCloseButton from '../../../../components/widgets/DialogCloseButton'; import Dialog from '../../../../components/widgets/Dialog'; -import type { InjectedOrGenerated } from '../../../../types/injectedPropsType'; import LocalizableError from '../../../../i18n/LocalizableError'; import ErrorBlock from '../../../../components/widgets/ErrorBlock'; -import { ProgressInfo } from '../../../../stores/ada/VotingStore'; import RegisterDialog from '../../../../components/wallet/voting/RegisterDialog'; -import type { StepsList } from '../../../../components/wallet/voting/types'; export type GeneratedData = typeof RegisterDialogContainer.prototype.generated; @@ -27,8 +28,14 @@ type Props = {| +classicTheme: boolean, |}; +type InjectedProps = {| + +isRevampLayout: boolean, +|}; + +type AllProps = {| ...Props, ...InjectedProps |}; + @observer -export default class RegisterDialogContainer extends Component