Switch to qrcode-generator library
This commit is contained in:
parent
17bee00821
commit
c8d32f0327
14 changed files with 155 additions and 696 deletions
17
ts/components/QrCode.stories.tsx
Normal file
17
ts/components/QrCode.stories.tsx
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import React from 'react';
|
||||
import { storiesOf } from '@storybook/react';
|
||||
|
||||
import { QrCode } from './QrCode';
|
||||
|
||||
const story = storiesOf('Components/QrCode', module);
|
||||
|
||||
story.add('Default', () => (
|
||||
<QrCode
|
||||
aria-label="Scan this little code!"
|
||||
data="sgnl://linkdevice?uuid=gCkj0T2xiSUaPRhMYiF24w&pub_key=7RshtQrb3UTMowITe79uW9dgw_CLTGWenj0OT80i0HpH"
|
||||
size={256}
|
||||
/>
|
||||
));
|
Loading…
Add table
Add a link
Reference in a new issue