Remove button to copy quick connect code #201
This commit is contained in:
1 file changed
+47
-46
+47
-46
@@ -13,6 +13,7 @@ import {
|
|||||||
DialogContentText,
|
DialogContentText,
|
||||||
Grid,
|
Grid,
|
||||||
OutlinedInput,
|
OutlinedInput,
|
||||||
|
Tooltip,
|
||||||
Typography,
|
Typography,
|
||||||
} from "@mui/material";
|
} from "@mui/material";
|
||||||
import Button from "@mui/material/Button";
|
import Button from "@mui/material/Button";
|
||||||
@@ -491,29 +492,29 @@ export const UserLogin = () => {
|
|||||||
className="flex flex-row"
|
className="flex flex-row"
|
||||||
style={{ gap: "1em", alignItems: "center", marginTop: "1em" }}
|
style={{ gap: "1em", alignItems: "center", marginTop: "1em" }}
|
||||||
>
|
>
|
||||||
<Typography
|
<Tooltip title="Click to copy" arrow placement="top">
|
||||||
variant="h3"
|
<Typography
|
||||||
color="textPrimary"
|
variant="h3"
|
||||||
textAlign="center"
|
color="textPrimary"
|
||||||
sx={{
|
textAlign="center"
|
||||||
background: "rgb(255 255 255 / 0.1)",
|
sx={{
|
||||||
width: "fit-content",
|
background: "rgb(255 255 255 / 0.1)",
|
||||||
padding: "0.4em",
|
width: "fit-content",
|
||||||
borderRadius: "10px",
|
padding: "0.4em",
|
||||||
}}
|
borderRadius: "10px",
|
||||||
>
|
cursor: "pointer",
|
||||||
{quickConnectCode}
|
}}
|
||||||
</Typography>
|
onClick={(e) => {
|
||||||
<IconButton
|
navigator.clipboard.writeText(quickConnectCode);
|
||||||
onClick={(e) => {
|
enqueueSnackbar("Quick Connect Code copied!", {
|
||||||
navigator.clipboard.writeText(quickConnectCode);
|
variant: "info",
|
||||||
enqueueSnackbar("Quick Connect Code copied!", {
|
key: "copiedText",
|
||||||
variant: "info",
|
});
|
||||||
});
|
}}
|
||||||
}}
|
>
|
||||||
>
|
{quickConnectCode}
|
||||||
<span className="material-symbols-rounded">content_copy</span>
|
</Typography>
|
||||||
</IconButton>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
<DialogActions
|
<DialogActions
|
||||||
@@ -870,29 +871,29 @@ export const UserLoginManual = () => {
|
|||||||
className="flex flex-row"
|
className="flex flex-row"
|
||||||
style={{ gap: "1em", alignItems: "center", marginTop: "1em" }}
|
style={{ gap: "1em", alignItems: "center", marginTop: "1em" }}
|
||||||
>
|
>
|
||||||
<Typography
|
<Tooltip title="Click to copy" arrow placement="top">
|
||||||
variant="h3"
|
<Typography
|
||||||
color="textPrimary"
|
variant="h3"
|
||||||
textAlign="center"
|
color="textPrimary"
|
||||||
sx={{
|
textAlign="center"
|
||||||
background: "rgb(255 255 255 / 0.1)",
|
sx={{
|
||||||
width: "fit-content",
|
background: "rgb(255 255 255 / 0.1)",
|
||||||
padding: "0.4em",
|
width: "fit-content",
|
||||||
borderRadius: "10px",
|
padding: "0.4em",
|
||||||
}}
|
borderRadius: "10px",
|
||||||
>
|
cursor: "pointer",
|
||||||
{quickConnectCode ?? "******"}
|
}}
|
||||||
</Typography>
|
onClick={(e) => {
|
||||||
<IconButton
|
navigator.clipboard.writeText(quickConnectCode);
|
||||||
onClick={(e) => {
|
enqueueSnackbar("Quick Connect Code copied!", {
|
||||||
navigator.clipboard.writeText(quickConnectCode);
|
variant: "info",
|
||||||
enqueueSnackbar("Quick Connect Code copied!", {
|
key: "copiedText",
|
||||||
variant: "info",
|
});
|
||||||
});
|
}}
|
||||||
}}
|
>
|
||||||
>
|
{quickConnectCode}
|
||||||
<span className="material-symbols-rounded">content_copy</span>
|
</Typography>
|
||||||
</IconButton>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
<DialogActions
|
<DialogActions
|
||||||
|
|||||||
Reference in new issue
Block a user