Skip to content

Commit

Permalink
fix(ui): center align dialog header headings
Browse files Browse the repository at this point in the history
addresses "Unlike other modals, this one's left-aligned here but center-aligned on Zeplin:" issue  in LN-Zap#3046
  • Loading branch information
bolatovumar committed Oct 26, 2019
1 parent 4416f62 commit 9451bce
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion renderer/components/Channels/ChannelCloseDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const DialogWrapper = ({ intl, isForceClose, isOpen, onClose, onCancel, csvDelay
<Box color="superRed" mb={2}>
<Delete height={72} width={72} />
</Box>
<Heading.h1>
<Heading.h1 textAlign="center">
<FormattedMessage {...messages.close_channel_dialog_header} />
</Heading.h1>
</Flex>
Expand Down
2 changes: 1 addition & 1 deletion renderer/components/Dialog/DialogLndCrashed.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const DialogLndCrashed = ({ onCancel, lndCrashReason, history, isOpen }) => {
<Box color="lightningOrange" mb={2}>
<Delete height={72} width={72} />
</Box>
<Heading.h1>
<Heading.h1 textAlign="center">
<FormattedMessage {...messages.lnd_crashed_dialog_header} />
</Heading.h1>
</Flex>
Expand Down
2 changes: 1 addition & 1 deletion renderer/components/Home/DeleteWalletDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const DialogWrapper = ({ intl, isOpen, walletDir, onDelete, onCancel }) => {
<Box color="superRed" mb={2}>
<Delete height={72} width={72} />
</Box>
<Heading.h1>
<Heading.h1 textAlign="center">
<FormattedMessage {...messages.delete_wallet_dialog_header} />
</Heading.h1>
</Flex>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const ErrorDialog = ({ onClose, error, isRestoreMode, isOpen }) => {
<Box color="superRed" mb={2}>
<Delete height={72} width={72} />
</Box>
<Heading.h1>
<Heading.h1 textAlign="center">
<FormattedMessage {...messages.error_dialog_header} />
</Heading.h1>
</Flex>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const DialogWrapper = ({ intl, isOpen, isRestoreMode, onSkip, onCancel }) => {
<Box color="lightningOrange" mb={2}>
<Warning height={72} width={72} />
</Box>
<Heading.h1>
<Heading.h1 textAlign="center">
<FormattedMessage {...messages.skip_backup_dialog_warning_header} />
</Heading.h1>
</Flex>
Expand Down

0 comments on commit 9451bce

Please # to comment.