Skip to content

Commit

Permalink
fix: CU-2pjkxye - No visible QR code
Browse files Browse the repository at this point in the history
  • Loading branch information
LAPTOP-HBL4M4SL\rauld committed Sep 1, 2022
1 parent 423b63e commit 6156058
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 13 deletions.
3 changes: 1 addition & 2 deletions app/components/Panel/FullHeightPanel/FullHeightPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ export default class ViewLayout extends Component<Props> {
shouldRenderHeader: true,
renderInstructions: () => (
<div>
{' '}
<FormattedMessage id="walletCreationInstruction" />{' '}
<FormattedMessage id="walletCreationInstruction" />
</div>
),
iconColor: '#4CFFB3',
Expand Down
1 change: 0 additions & 1 deletion app/components/Settings/EncryptForm/EncryptForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ const EncryptForm = ({
error={confirmPassphraseError}
/>
<Button
className={styles.submitButton}
primary
type="submit"
renderIcon={AddIcon}
Expand Down
6 changes: 0 additions & 6 deletions app/components/Settings/EncryptForm/EncryptForm.scss
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
.encryptForm {
width: 500px;
margin: 0 auto;
height: 100%;
display: flex;
flex-direction: column;

form {
align-self: flex-start;
}

.submitButton {
margin-top: auto;
margin-bottom: 50px;
}
}

.formContainer {
Expand Down
2 changes: 1 addition & 1 deletion app/components/Settings/EncryptSuccess/EncryptSuccess.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $encrypt-icon-size: 24px;
.encryptSuccess {
display: flex;
flex-direction: column;
height: 500px;
justify-content: center;
max-width: 500px;
flex: 1;

Expand Down
4 changes: 2 additions & 2 deletions app/containers/Encrypt/Encrypt.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ const Encrypt = ({ encryptedWIF, resetEncryptedWIF }: Props) => {
)}
renderHeaderIcon={HeaderIcon}
renderInstructions={
encryptedWIF
!encryptedWIF
? () => intl.formatMessage({ id: 'encryptInstructions' })
: undefined
: null
}
>
{!encryptedWIF ? (
Expand Down
1 change: 1 addition & 0 deletions app/containers/Encrypt/Encrypt.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.encrypt {
display: flex;
justify-content: center;
flex: 1;
}
2 changes: 1 addition & 1 deletion app/hocs/withCopyCanvasToClipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function withCopyCanvasToClipboard(Component) {
// $FlowFixMe
const url = ref.toDataURL('image/jpg', 0.8)
const base64Data = url.replace(/^data:image\/png;base64,/, '')
const storagePath = storage.getDataPath()
const storagePath = await ipcRenderer.invoke('getStoragePath')
await writeFile(`${storagePath}/${fileName}.jpg`, base64Data, 'base64')
clipboard.writeImage(`${storagePath}/${fileName}.jpg`)
}
Expand Down

0 comments on commit 6156058

Please sign in to comment.