mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 12:19:16 +00:00
First github Commit
This commit is contained in:
25
frontend/src/pages/WhatsAuth/components/Qrcode.js
Normal file
25
frontend/src/pages/WhatsAuth/components/Qrcode.js
Normal file
@@ -0,0 +1,25 @@
|
||||
import React from "react";
|
||||
import QRCode from "qrcode.react";
|
||||
import { makeStyles } from "@material-ui/core/styles";
|
||||
import Typography from "@material-ui/core/Typography";
|
||||
|
||||
const useStyles = makeStyles({
|
||||
main: {
|
||||
flex: 1,
|
||||
},
|
||||
});
|
||||
|
||||
const Qrcode = ({ qrCode }) => {
|
||||
const classes = useStyles();
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Typography component="h2" variant="h6" color="primary" gutterBottom>
|
||||
Leia o QrCode para iniciar a sessão
|
||||
</Typography>
|
||||
<QRCode value={qrCode} size={256} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Qrcode;
|
||||
Reference in New Issue
Block a user