Skip to content

Commit

Permalink
update components
Browse files Browse the repository at this point in the history
  • Loading branch information
alissacrane-cb committed Nov 4, 2024
1 parent b28c82a commit 7e51319
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions agent-frontend/app/components/AgentProfile.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useEffect, useRef, useState } from "react";
import { useCallback, useEffect, useRef, useState } from "react";
import { Language } from "../types";
import { notoSansThai } from "../constants";
import { translations } from "../translations";
Expand All @@ -15,7 +15,7 @@ export default function AgentProfile({ currentLanguage }: AgentProfileProps) {
const [showToast, setShowToast] = useState(false);
const avatarRef = useRef<SVGSVGElement>(null);

const copyToClipboard = () => {
const copyToClipboard = useCallback(() => {
navigator.clipboard
.writeText(agentWallet)
.then(() => {
Expand All @@ -25,7 +25,7 @@ export default function AgentProfile({ currentLanguage }: AgentProfileProps) {
.catch((err) => {
console.error("Failed to copy wallet address: ", err);
});
};
}, []);

useEffect(() => {
const handleMouseMove = (event: MouseEvent) => {
Expand Down
2 changes: 1 addition & 1 deletion agent-frontend/app/utils.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ActionEntry, Language, StreamEntry } from "./types";
import { ActionEntry } from "./types";
import NftSvg from "./svg/NftSvg";
import RequestSvg from "./svg/RequestSvg";
import SendSvg from "./svg/SendSvg";
Expand Down

0 comments on commit 7e51319

Please sign in to comment.