mirror of
https://github.com/selfxyz/self.git
synced 2026-04-27 03:01:15 -04:00
fix: qrcode undefined error (#1404)
This commit is contained in:
@@ -13,6 +13,8 @@ import { QRcodeSteps } from '../utils/utils.js';
|
||||
import { initWebSocket } from '../utils/websocket.js';
|
||||
import LED from './LED.js';
|
||||
|
||||
const LottieComponent = Lottie.default || Lottie;
|
||||
|
||||
interface SelfQRcodeProps {
|
||||
selfApp: SelfApp;
|
||||
onSuccess: () => void;
|
||||
@@ -95,7 +97,8 @@ const SelfQRcode = ({
|
||||
return <BounceLoader loading={true} size={200} color="#94FBAB" />;
|
||||
case QRcodeSteps.PROOF_GENERATION_FAILED:
|
||||
return (
|
||||
<Lottie.default
|
||||
//@ts-ignore
|
||||
<LottieComponent
|
||||
animationData={X_ANIMATION}
|
||||
style={{ width: 200, height: 200 }}
|
||||
onComplete={() => {
|
||||
@@ -106,7 +109,8 @@ const SelfQRcode = ({
|
||||
);
|
||||
case QRcodeSteps.PROOF_VERIFIED:
|
||||
return (
|
||||
<Lottie.default
|
||||
//@ts-ignore
|
||||
<LottieComponent
|
||||
animationData={CHECK_ANIMATION}
|
||||
style={{ width: 200, height: 200 }}
|
||||
onComplete={() => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@selfxyz/qrcode",
|
||||
"version": "1.0.16",
|
||||
"version": "1.0.17-beta.1",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/selfxyz/self"
|
||||
|
||||
Reference in New Issue
Block a user