Skip to content

Commit

Permalink
fix: qr code
Browse files Browse the repository at this point in the history
  • Loading branch information
Fara Woolf committed Nov 17, 2023
1 parent 99fb117 commit d0e4e95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/app/pages/receive/components/address-qr-code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ import { memo, useMemo } from 'react';

import { createQR } from '@vkontakte/vk-qr';
import { Box, Flex } from 'leather-styles/jsx';
import { token } from 'leather-styles/tokens';

export const QrCode = memo(({ principal, ...rest }: { principal: string }) => {
const qrSvg = useMemo(
() =>
createQR(principal, {
ecc: 0,
qrSize: 180,
backgroundColor: 'accent.text-primary',
foregroundColor: 'invert',
backgroundColor: token('colors.accent.background-primary'),
foregroundColor: token('colors.accent.text-primary'),
}),
[principal]
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ test.describe('Bitcoin Contract Request Test', () => {
const expectedLockAmount = '0.0001 BTC';
const expectedExpirationDate = '10/17/2023';

initiateOfferRequest(page)(requestParams);
await initiateOfferRequest(page)(requestParams);

const popup = await context.waitForEvent('page');

Expand Down Expand Up @@ -103,7 +103,7 @@ test.describe('Bitcoin Contract Request Test', () => {
page,
context,
}) => {
initiateOfferRequest(page)(requestParams);
await initiateOfferRequest(page)(requestParams);

const popup = await context.waitForEvent('page');
await popup.waitForTimeout(500);
Expand Down

0 comments on commit d0e4e95

Please sign in to comment.