Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
lacoonte committed Mar 17, 2021
1 parent 26a5cf6 commit c0feca5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions webapp/src/components/QRPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function QRPage() {
const [showQR, setShowQR] = useState(false);


const [pair, setPair] = useState(() => {
const [pair] = useState(() => {
const pair = keypair({ bits: 1024 });
return pair;
});
Expand All @@ -43,16 +43,16 @@ export default function QRPage() {
}


if(showQR) {
if (showQR) {
return (<div className="centerMe"><QRCode
level="Q"
size={512}
value={JSON.stringify({
webId,
privateKey
})}
/></div>);
level="Q"
size={512}
value={JSON.stringify({
webId,
privateKey
})}
/></div>);
}

return (<div className="centerMe"><Button color="primary" variant="contained" onClick={logKey}>Press me</Button></div>);
}

0 comments on commit c0feca5

Please sign in to comment.