Skip to content

Commit

Permalink
fix(ui): center failed payment error modal dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
bolatovumar committed Nov 15, 2019
1 parent d800a01 commit b08353c
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 b08353c

Please sign in to comment.