Add QR code of tempalink

pull/97/head
KayleePop 7 years ago
parent d826b95d94
commit 77692e0df4
No known key found for this signature in database
GPG Key ID: 110C2E0CFBFC06FA

@ -1,4 +1,5 @@
import React from 'react'
import QRCode from 'react-qr'
export default class Tempalink extends React.Component {
constructor() {
@ -12,13 +13,16 @@ export default class Tempalink extends React.Component {
render() {
var url = window.location.origin + '/' + this.props.token
return <input
className="tempalink"
return <div className="tempalink">
<input
onClick={this.onClick}
readOnly
ref="input"
type="text"
value={url} />
<QRCode text={url} />
</div>
}
}

@ -175,6 +175,10 @@ p {
}
.tempalink {
display: flex
flex-direction: column
input {
background: beige
color: dark-gray
border: 0
@ -186,6 +190,11 @@ p {
width: 100%
}
img {
margin: auto
}
}
.data {
color: gray
font: 14px/20px "Quicksand", sans-serif

@ -58,6 +58,7 @@
"react": "^0.13.0",
"react-frozenhead": "^0.3.0",
"react-google-analytics": "^0.2.0",
"react-qr": "0.0.2",
"react-router": "^0.13.1",
"socket.io": "^1.3.5",
"socket.io-client": "^1.3.5",

Loading…
Cancel
Save