Add support for ACI safety numbers behind a feature flag
This commit is contained in:
parent
42cd8ce792
commit
c1580a5eb3
38 changed files with 1392 additions and 204 deletions
|
@ -12,7 +12,7 @@ const ERROR_CORRECTION_LEVEL = 'L';
|
|||
type PropsType = Readonly<{
|
||||
alt: string;
|
||||
className?: string;
|
||||
data: string;
|
||||
data: string | Uint8Array;
|
||||
}>;
|
||||
|
||||
export function QrCode(props: PropsType): ReactElement {
|
||||
|
@ -37,6 +37,9 @@ export function QrCode(props: PropsType): ReactElement {
|
|||
if (getEnvironment() === Environment.Production) {
|
||||
return;
|
||||
}
|
||||
if (data instanceof Uint8Array) {
|
||||
return;
|
||||
}
|
||||
|
||||
void navigator.clipboard.writeText(data);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue