14 lines
429 B
JavaScript
14 lines
429 B
JavaScript
import React from 'react';
|
|
import QrCode from '../../common/qrCode';
|
|
import { DotLoading } from 'antd-mobile';
|
|
export default function Render(props) {
|
|
const { url, expiresAt, oakLoading, disableDownload } = props.data;
|
|
if (oakLoading) {
|
|
return <DotLoading color="primary"/>;
|
|
}
|
|
if (url) {
|
|
return <QrCode url={url} expiresAt={expiresAt} disableDownload={disableDownload}/>;
|
|
}
|
|
return null;
|
|
}
|