Add support for ACI safety numbers behind a feature flag

This commit is contained in:
Fedor Indutny 2023-07-13 21:06:42 +02:00 committed by Fedor Indutnyy
parent 42cd8ce792
commit c1580a5eb3
38 changed files with 1392 additions and 204 deletions

View file

@ -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);