Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3188 from bolatovumar/fix-3183
Browse files Browse the repository at this point in the history
fix(ui): center failed payment error modal dialog
  • Loading branch information
mrfelton authored Nov 15, 2019
2 parents d800a01 + b08353c commit b089312
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions renderer/components/Activity/Activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const Activity = props => {
isOpen={isErrorDialogOpen}
onClose={hideErrorDetailsDialog}
onCopy={onErrorDetailsCopy}
position="fixed"
/>
</>
</Panel.Body>
Expand Down
5 changes: 3 additions & 2 deletions renderer/components/Activity/ErrorDetailsDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import copy from 'copy-to-clipboard'
import { Dialog, Text, DialogOverlay, Heading, Button } from 'components/UI'
import messages from './messages'

const ErrorDetailsDialog = ({ error, isOpen, onCopy, onClose, ...rest }) => {
const ErrorDetailsDialog = ({ error, isOpen, onCopy, onClose, position, ...rest }) => {
if (!isOpen) {
return null
}
Expand All @@ -23,7 +23,7 @@ const ErrorDetailsDialog = ({ error, isOpen, onCopy, onClose, ...rest }) => {
}

return (
<DialogOverlay alignItems="center" justifyContent="center">
<DialogOverlay alignItems="center" justifyContent="center" position={position}>
<Dialog
header={headerEl}
{...rest}
Expand All @@ -47,6 +47,7 @@ ErrorDetailsDialog.propTypes = {
isOpen: PropTypes.bool.isRequired,
onClose: PropTypes.func.isRequired,
onCopy: PropTypes.func.isRequired,
position: PropTypes.string,
}

export default ErrorDetailsDialog

0 comments on commit b089312

Please sign in to comment.