diff --git a/frontend/src/pages/Settings/index.js b/frontend/src/pages/Settings/index.js index e69de29..c4b1d32 100644 --- a/frontend/src/pages/Settings/index.js +++ b/frontend/src/pages/Settings/index.js @@ -0,0 +1,73 @@ +import React, { useState, useEffect } from "react"; +import { useHistory } from "react-router-dom"; +import api from "../../services/api"; +import openSocket from "socket.io-client"; + +import { makeStyles } from "@material-ui/core/styles"; + +import Paper from "@material-ui/core/Paper"; + +import Switch from "@material-ui/core/Switch"; +import Typography from "@material-ui/core/Typography"; +import Container from "@material-ui/core/Container"; + +const useStyles = makeStyles(theme => ({ + root: { + display: "flex", + alignItems: "center", + padding: theme.spacing(4), + }, + + paper: { + padding: theme.spacing(2), + display: "flex", + alignItems: "center", + }, + + switch: { + marginLeft: "auto", + }, +})); + +const WhatsAuth = () => { + const classes = useStyles(); + // const history = useHistory(); + + const [settings, setSettings] = useState([]); + + // useEffect(() => { + // const fetchSession = async () => { + // try { + // const { data } = await api.get("/whatsapp/session/1"); + // setQrCode(data.qrcode); + // setSession(data); + // } catch (err) { + // console.log(err); + // } + // }; + // fetchSession(); + // }, []); + + return ( +