Skip to content

Commit

Permalink
fix: qr code
Browse files Browse the repository at this point in the history
  • Loading branch information
Fara Woolf authored and fbwoolf committed Nov 20, 2023
1 parent 3ad4b06 commit b035f20
Showing 1 changed file with 3 additions and 2 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

0 comments on commit b035f20

Please sign in to comment.