From cc172e813be7df37c5728f8e03499c7ec3f8bd3b Mon Sep 17 00:00:00 2001 From: Alissa Crane Date: Thu, 7 Nov 2024 15:46:24 -0800 Subject: [PATCH] fix check --- app/components/AgentAssets.tsx | 6 +++--- app/utils.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/components/AgentAssets.tsx b/app/components/AgentAssets.tsx index 6db87ce..5cbf310 100644 --- a/app/components/AgentAssets.tsx +++ b/app/components/AgentAssets.tsx @@ -1,4 +1,4 @@ -import { Token, TokenRow } from '@coinbase/onchainkit/token'; +import { type Token, TokenRow } from '@coinbase/onchainkit/token'; import { useCallback, useEffect, useState } from 'react'; // import useGetNFTs from "../hooks/useGetNFTs"; import type { Address } from 'viem'; @@ -20,7 +20,7 @@ function AgentToken({ tokenAddress }: AgentTokenProps) { image: '', }; - return ; + return ; } export default function AgentAssets() { const [tab, setTab] = useState('tokens'); @@ -56,7 +56,7 @@ export default function AgentAssets() { type="button" onClick={handleTabChange('tokens')} className={`flex items-center justify-center py-1 ${ - tab === 'tokens' ? 'border-b border-[#5788FA]' : '' + tab === 'tokens' ? 'border-[#5788FA] border-b' : '' }`} > Tokens diff --git a/app/utils.tsx b/app/utils.tsx index 0e15d3b..3710066 100644 --- a/app/utils.tsx +++ b/app/utils.tsx @@ -1,5 +1,5 @@ export function generateUUID() { - return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { + return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => { const r = (Math.random() * 16) | 0; const v = c === 'x' ? r : (r & 0x3) | 0x8; return v.toString(16);