From 99e8ba1ca2fe77f9e66d8cd5483186af1d03b97f Mon Sep 17 00:00:00 2001 From: ShubhamChndrvnshi Date: Tue, 25 Jun 2024 23:19:40 +0530 Subject: [PATCH] fix linting --- .../nextjs/app/dashboard/attestation/[uid]/page.tsx | 2 +- packages/nextjs/app/dashboard/attestations/page.tsx | 10 ++++++++-- .../app/debug/_components/contract/utilsDisplay.tsx | 2 +- packages/nextjs/utils/utils.ts | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/packages/nextjs/app/dashboard/attestation/[uid]/page.tsx b/packages/nextjs/app/dashboard/attestation/[uid]/page.tsx index b37bcec..092b2b1 100644 --- a/packages/nextjs/app/dashboard/attestation/[uid]/page.tsx +++ b/packages/nextjs/app/dashboard/attestation/[uid]/page.tsx @@ -44,7 +44,7 @@ export default function AttestationPage({ revocable: rawAttestation.revocable.toString(), revocation_time: rawAttestation.revocation_time.toString(), schema_uid: rawAttestation.schema_uid.toString(), - time: timeAgo(rawAttestation.time.toString()), + time: timeAgo(rawAttestation.time.toString()), uid: rawAttestation.uid.toString(), }; console.log("Mapped Attestation:", mappedAttestation); diff --git a/packages/nextjs/app/dashboard/attestations/page.tsx b/packages/nextjs/app/dashboard/attestations/page.tsx index f67139d..1e637af 100644 --- a/packages/nextjs/app/dashboard/attestations/page.tsx +++ b/packages/nextjs/app/dashboard/attestations/page.tsx @@ -57,10 +57,16 @@ const Attestations = () => { ); - const DashboardStats = ({ totalAttestations }: { totalAttestations: number }) => ( + const DashboardStats = ({ + totalAttestations, + }: { + totalAttestations: number; + }) => (
-
{totalAttestations}
+
+ {totalAttestations} +
Total Schemas
diff --git a/packages/nextjs/app/debug/_components/contract/utilsDisplay.tsx b/packages/nextjs/app/debug/_components/contract/utilsDisplay.tsx index 1a7762e..5e99dca 100644 --- a/packages/nextjs/app/debug/_components/contract/utilsDisplay.tsx +++ b/packages/nextjs/app/debug/_components/contract/utilsDisplay.tsx @@ -24,7 +24,7 @@ type DisplayContent = export const displayTxResult = ( displayContent: DisplayContent | DisplayContent[], asText: boolean, - functionOutputs: readonly AbiOutput[] = [] + functionOutputs: readonly AbiOutput[] = [], ): string | ReactElement | number => { if (displayContent == null) { return ""; diff --git a/packages/nextjs/utils/utils.ts b/packages/nextjs/utils/utils.ts index 74c8cbe..e1f51d8 100644 --- a/packages/nextjs/utils/utils.ts +++ b/packages/nextjs/utils/utils.ts @@ -9,7 +9,7 @@ const contract = new Contract(ERC20abi, contractAddress, provider); export type Attestation = { attester: any; - data: any + data: any; recipient: any; revocable: any; revocation_time: any;