From 4d5f4b95e54c9ef9e618fcce56d40aa71781709f Mon Sep 17 00:00:00 2001 From: Prayag Prajapati Date: Sat, 13 Jan 2024 14:14:12 +0530 Subject: [PATCH] Remove button to copy quick connect code #201 --- src/routes/login/index.jsx | 93 +++++++++++++++++++------------------- 1 file changed, 47 insertions(+), 46 deletions(-) diff --git a/src/routes/login/index.jsx b/src/routes/login/index.jsx index 920622e..34b4f7e 100644 --- a/src/routes/login/index.jsx +++ b/src/routes/login/index.jsx @@ -13,6 +13,7 @@ import { DialogContentText, Grid, OutlinedInput, + Tooltip, Typography, } from "@mui/material"; import Button from "@mui/material/Button"; @@ -491,29 +492,29 @@ export const UserLogin = () => { className="flex flex-row" style={{ gap: "1em", alignItems: "center", marginTop: "1em" }} > - - {quickConnectCode} - - { - navigator.clipboard.writeText(quickConnectCode); - enqueueSnackbar("Quick Connect Code copied!", { - variant: "info", - }); - }} - > - content_copy - + + { + navigator.clipboard.writeText(quickConnectCode); + enqueueSnackbar("Quick Connect Code copied!", { + variant: "info", + key: "copiedText", + }); + }} + > + {quickConnectCode} + + { className="flex flex-row" style={{ gap: "1em", alignItems: "center", marginTop: "1em" }} > - - {quickConnectCode ?? "******"} - - { - navigator.clipboard.writeText(quickConnectCode); - enqueueSnackbar("Quick Connect Code copied!", { - variant: "info", - }); - }} - > - content_copy - + + { + navigator.clipboard.writeText(quickConnectCode); + enqueueSnackbar("Quick Connect Code copied!", { + variant: "info", + key: "copiedText", + }); + }} + > + {quickConnectCode} + +