From 999d9d90a4d576323c2ba2896bd6aafe667e8510 Mon Sep 17 00:00:00 2001 From: 0xJonaseb11 Date: Sun, 27 Oct 2024 02:18:20 +0200 Subject: [PATCH] update buildFixed#03 --- packages/nextjs/app/(app)/dashboard/page.tsx | 14 ++++++++------ .../nextjs/components/dashboard/ClaimRoleCard.tsx | 2 +- .../nextjs/components/dashboard/DataRegistry.tsx | 2 +- .../AddressInfoDropdown.tsx | 4 ++-- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/packages/nextjs/app/(app)/dashboard/page.tsx b/packages/nextjs/app/(app)/dashboard/page.tsx index b382524..d372bce 100644 --- a/packages/nextjs/app/(app)/dashboard/page.tsx +++ b/packages/nextjs/app/(app)/dashboard/page.tsx @@ -10,14 +10,16 @@ export const metadata: Metadata = { export default function DashboardPage() { return ( -
+ <>

Welcome, Partner! Start by claiming a role!🤝

- - - - -
+
+ + + + +
+ ); } diff --git a/packages/nextjs/components/dashboard/ClaimRoleCard.tsx b/packages/nextjs/components/dashboard/ClaimRoleCard.tsx index 3543967..f0dab24 100644 --- a/packages/nextjs/components/dashboard/ClaimRoleCard.tsx +++ b/packages/nextjs/components/dashboard/ClaimRoleCard.tsx @@ -1,6 +1,6 @@ -/* eslint-disable prettier/prettier */ "use client"; +/* eslint-disable prettier/prettier */ import { useState } from "react"; import { ethers } from "ethers"; import { diff --git a/packages/nextjs/components/dashboard/DataRegistry.tsx b/packages/nextjs/components/dashboard/DataRegistry.tsx index 77c112e..d29c322 100644 --- a/packages/nextjs/components/dashboard/DataRegistry.tsx +++ b/packages/nextjs/components/dashboard/DataRegistry.tsx @@ -1,5 +1,5 @@ -/* eslint-disable prettier/prettier */ "use client"; +/* eslint-disable prettier/prettier */ import { useState, useEffect } from "react"; import { ethers } from "ethers"; diff --git a/packages/nextjs/components/scaffold-eth/RainbowKitCustomConnectButton/AddressInfoDropdown.tsx b/packages/nextjs/components/scaffold-eth/RainbowKitCustomConnectButton/AddressInfoDropdown.tsx index a9e3125..91ac811 100644 --- a/packages/nextjs/components/scaffold-eth/RainbowKitCustomConnectButton/AddressInfoDropdown.tsx +++ b/packages/nextjs/components/scaffold-eth/RainbowKitCustomConnectButton/AddressInfoDropdown.tsx @@ -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); @@ -49,7 +49,7 @@ export const AddressInfoDropdown = ({ <>
- + {isENS(displayName) ? displayName : checkSumAddress?.slice(0, 6) + "..." + checkSumAddress?.slice(-4)}