Skip to content

Commit

Permalink
refactor: tweak coong-logo in QR code, add coong-logo to QR code in S…
Browse files Browse the repository at this point in the history
…howAddressQrCodeDialog
  • Loading branch information
1cedrus committed Jun 30, 2023
1 parent ae63e8e commit b6a6cb7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed packages/ui/src/assets/images/coong-logo.png
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useState } from 'react';
import { useTranslation } from 'react-i18next';
import { encodeAddress } from '@polkadot/util-crypto';
import { Dialog, DialogContent } from '@mui/material';
import CoongLogo from 'assets/images/coong-logo-circle.png';
import AccountAddress from 'components/pages/Accounts/AccountAddress';
import DialogTitle from 'components/shared/DialogTitle';
import NetworksSelection from 'components/shared/NetworksSelection';
Expand Down Expand Up @@ -51,6 +52,12 @@ export default function ShowAddressQrCodeDialog(): JSX.Element {
size={size}
title={t<string>('Account Address QR Code')}
className='p-4'
imageSettings={{
src: CoongLogo,
height: 45,
width: 45,
excavate: false,
}}
/>
<AccountAddress address={address} className='text-sm' />
</DialogContent>
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/components/shared/export/QrCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { base64Encode } from '@polkadot/util-crypto';
import { AccountBackup, QrBackup } from '@coong/keyring/types';
import { Download } from '@mui/icons-material';
import { Button } from '@mui/material';
import CoongLogo from 'assets/images/coong-logo.png';
import CoongLogo from 'assets/images/coong-logo-circle.png';
import FileSaver from 'file-saver';
import useQrCodeSize from 'hooks/useQrCodeSize';
import { Props, TransferableObject } from 'types';
Expand Down Expand Up @@ -110,7 +110,7 @@ export default function QrCode({ value, object }: QrCodeProps) {
src: CoongLogo,
height: 64,
width: 64,
excavate: true,
excavate: false,
}}
style={{
width: size,
Expand Down

0 comments on commit b6a6cb7

Please sign in to comment.