We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f95e6d1 commit 89039deCopy full SHA for 89039de
1 file changed
frontend/app/[locale]/users/components/UserProfileComp.tsx
@@ -39,6 +39,7 @@ import { OAuthAccountsSection } from "@/components/settings/OAuthAccountsSection
39
import log from "@/lib/logger";
40
import { authService } from "@/services/authService";
41
import { getPasswordChecks, getStrengthLevel } from "@/lib/utils";
42
+import { copyToClipboard } from "@/lib/clipboard";
43
import { useConfirmModal } from "@/hooks/useConfirmModal";
44
import {
45
getUserTokens,
@@ -199,7 +200,7 @@ export default function UserProfileComp() {
199
200
const handleCopyAk = async () => {
201
if (akInfo) {
202
try {
- await navigator.clipboard.writeText(akInfo);
203
+ await copyToClipboard(akInfo);
204
antdMessage.success(
205
t("profile.copyAkSuccess") || "Access key copied to clipboard"
206
);
0 commit comments