Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
update buildFixed#03
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJonaseb11 committed Oct 27, 2024
1 parent 3114ab1 commit 999d9d9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
14 changes: 8 additions & 6 deletions packages/nextjs/app/(app)/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ export const metadata: Metadata = {

export default function DashboardPage() {
return (
<div className="w-full min-h-full flex justify-center bg-neutral-100 shadow-2xl">
<>
<div className="flex justify-center w-full ">
<p>Welcome, Partner! Start by claiming a role!🤝</p>
</div>
<ClaimRoleCard />
<DataRegistry />
<MineralToken />
<SupplyChain />
</div>
<div className="w-full min-h-full flex justify-center bg-neutral-100 shadow-2xl">
<ClaimRoleCard />
<DataRegistry />
<MineralToken />
<SupplyChain />
</div>
</>
);
}
2 changes: 1 addition & 1 deletion packages/nextjs/components/dashboard/ClaimRoleCard.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable prettier/prettier */
"use client";

/* eslint-disable prettier/prettier */
import { useState } from "react";
import { ethers } from "ethers";
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/components/dashboard/DataRegistry.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable prettier/prettier */
"use client";
/* eslint-disable prettier/prettier */

import { useState, useEffect } from "react";
import { ethers } from "ethers";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const AddressInfoDropdown = ({
blockExplorerAddressLink,
}: AddressInfoDropdownProps) => {
const { disconnect } = useDisconnect();
const checkSumAddress = getAddress(address);
const checkSumAddress = address ? getAddress(address) : null;

const [addressCopied, setAddressCopied] = useState(false);

Expand All @@ -49,7 +49,7 @@ export const AddressInfoDropdown = ({
<>
<details ref={dropdownRef} className="dropdown dropdown-end leading-3">
<summary tabIndex={0} className="btn btn-secondary btn-sm pl-0 pr-2 shadow-md dropdown-toggle gap-0 !h-auto">
<BlockieAvatar address={checkSumAddress} size={30} ensImage={ensAvatar} />
<BlockieAvatar address={checkSumAddress || ""} size={30} ensImage={ensAvatar} />
<span className="ml-2 mr-1">
{isENS(displayName) ? displayName : checkSumAddress?.slice(0, 6) + "..." + checkSumAddress?.slice(-4)}
</span>
Expand Down

0 comments on commit 999d9d9

Please sign in to comment.