Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamChndrvnshi committed Jun 25, 2024
1 parent 9cae1fb commit 99e8ba1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/nextjs/app/dashboard/attestation/[uid]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
10 changes: 8 additions & 2 deletions packages/nextjs/app/dashboard/attestations/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,16 @@ const Attestations = () => {
</Link>
);

const DashboardStats = ({ totalAttestations }: { totalAttestations: number }) => (
const DashboardStats = ({
totalAttestations,
}: {
totalAttestations: number;
}) => (
<div className="flex justify-around mb-6">
<div className="text-center">
<div className="text-3xl font-bold text-[#495FA9]">{totalAttestations}</div>
<div className="text-3xl font-bold text-[#495FA9]">
{totalAttestations}
</div>
<div className="text-gray-600">Total Schemas</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 "";
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 99e8ba1

Please sign in to comment.