feat: Add QR Code to Share Object Modal (#11735)

Co-authored-by: Kaan Kabalak <kaankabalak@gmail.com>
This commit is contained in:
S Santhosh Nagaraj
2021-03-12 00:51:45 +05:30
committed by GitHub
parent f92b7a5621
commit 9b54fcdf12
3 changed files with 9 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ import {
SHARE_OBJECT_EXPIRY_HOURS,
SHARE_OBJECT_EXPIRY_MINUTES
} from "../constants"
import QRCode from "react-qr-code";
export class ShareObjectModal extends React.Component {
constructor(props) {
@@ -89,6 +90,7 @@ export class ShareObjectModal extends React.Component {
<ModalHeader>Share Object</ModalHeader>
<ModalBody>
<div className="input-group copy-text">
<QRCode value={url} size={128}/>
<label>Shareable Link</label>
<input
type="text"