Skip to content

Commit

Permalink
Merge branch 'release/5.4.300' into fix/YOEXT-1446/fix-download-log
Browse files Browse the repository at this point in the history
  • Loading branch information
vsubhuman authored Oct 17, 2024
2 parents f244b6b + 5c7d0bc commit d77a0a6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default class StandardHeaderRevamp extends Component<Props> {
},
}}
>
<QrCodeWrapper fgColor="#000" value={walletAddress} size={153} id={locationId + '-addressQrCode-image'} />
<QrCodeWrapper value={walletAddress} size={153} id={locationId + '-addressQrCode-image'} />
</Box>
</QrCodeBackground>
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class VerifyAddressDialog extends Component<Props & InjectedLayoutProps> {
return (
<>
<div align="center">
<QrCodeWrapper fgColor="black" value={this.props.addressInfo.address} size={152} />
<QrCodeWrapper value={this.props.addressInfo.address} size={152} />
</div>
<br />
<br />
Expand Down
11 changes: 3 additions & 8 deletions packages/yoroi-extension/app/components/widgets/QrCodeWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,16 @@ type Props = {|
+size: number,
+id?: string,
+includeMargin?: boolean,
+addBg?: boolean,
+fgColor?: string,
|};

const QrCodeWrapper = ({ value, size, id = 'qr-code', includeMargin = false, addBg = true }: Props): Node => {
const QrCodeWrapper = ({ value, size, id = 'qr-code', includeMargin = false}: Props): Node => {
const theme = useTheme();
// Get QRCode color value from active theme's CSS variable
const qrCodeBackgroundColor = addBg ? theme.palette.ds.el_gray_max : theme.palette.ds.white_static;
const qrCodeForegroundColor = theme.palette.ds.gray_min;

return (
<QRCode
value={value}
bgColor={qrCodeBackgroundColor}
fgColor={qrCodeForegroundColor}
bgColor={theme.palette.ds.white_static}
fgColor={theme.palette.ds.black_static}
size={size}
includeMargin={includeMargin}
id={id}
Expand Down
4 changes: 2 additions & 2 deletions packages/yoroi-extension/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/yoroi-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yoroi",
"version": "5.4.100",
"version": "5.4.200",
"description": "Cardano ADA wallet",
"scripts": {
"dev-mv2": "rimraf dev/ && NODE_OPTIONS=--openssl-legacy-provider babel-node scripts-mv2/build --type=debug --env 'mainnet'",
Expand Down

0 comments on commit d77a0a6

Please sign in to comment.