Skip to content

Commit

Permalink
Função Copiar Token
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed Mar 27, 2023
1 parent 9ccf3de commit 40e9aa0
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions frontend/src/pages/ApiKey/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import React, { useState, useEffect } from "react";
import openSocket from "../../services/socket-io";

import { makeStyles } from "@material-ui/core/styles";
import Paper from "@material-ui/core/Paper";
import Typography from "@material-ui/core/Typography";
import Container from "@material-ui/core/Container";
import TextField from "@material-ui/core/TextField";
import {
Container,
makeStyles,
Paper,
TextField,
Typography
} from "@material-ui/core";

import CopyToClipboard from "../../components/CopyToClipboard";

import api from "../../services/api";
import { i18n } from "../../translate/i18n.js";
Expand Down Expand Up @@ -99,6 +103,7 @@ const Settings = () => {
fullWidth
value={settings && settings.length > 0 && getSettingValue("userApiToken")}
/>
<CopyToClipboard content={settings && settings.length > 0 && getSettingValue("userApiToken")} color="secondary" />
</Paper>

</Container>
Expand Down

0 comments on commit 40e9aa0

Please sign in to comment.