fix Advanced option style on reject modal

This commit is contained in:
Agustín Longoni 2021-02-11 15:08:32 -03:00
parent 64defa776a
commit 7a550e3ed3
2 changed files with 11 additions and 5 deletions

View File

@ -117,12 +117,14 @@ export const RejectTxModal = ({ isOpen, onClose, gwTransaction }: Props): React.
<TxParametersDetail
txParameters={txParameters}
onEdit={toggleEditMode}
compact={false}
parametersStatus={getParametersStatus()}
isTransactionCreation={isCreation}
isTransactionExecution={isExecution}
/>
<Row>
</Block>
{txEstimationExecutionStatus === EstimationStatus.LOADING ? null : (
<Block className={classes.gasCostsContainer}>
<TransactionFees
gasCostFormatted={gasCostFormatted}
isExecution={isExecution}
@ -130,8 +132,8 @@ export const RejectTxModal = ({ isOpen, onClose, gwTransaction }: Props): React.
isOffChainSignature={isOffChainSignature}
txEstimationExecutionStatus={txEstimationExecutionStatus}
/>
</Row>
</Block>
</Block>
)}
<Row align="center" className={classes.buttonRow}>
<Button minHeight={42} minWidth={140} onClick={onClose}>
Exit

View File

@ -1,5 +1,5 @@
import { createStyles } from '@material-ui/core'
import { border, lg, md, sm } from 'src/theme/variables'
import { background, border, lg, md, sm } from 'src/theme/variables'
export const styles = createStyles({
heading: {
@ -30,4 +30,8 @@ export const styles = createStyles({
marginTop: sm,
fontSize: md,
},
gasCostsContainer: {
backgroundColor: background,
padding: `0 ${lg}`,
},
})