Skip to content

Commit

Permalink
Removed the MemberAddress component
Browse files Browse the repository at this point in the history
- Removed the`MemberAaddress.tsx`
  component and took the whole code
  into the `MembersList.tsx`
  componet.
  • Loading branch information
rohann06 committed Aug 15, 2024
1 parent faae763 commit fa2da44
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
17 changes: 0 additions & 17 deletions packages/nextjs/app/builders/_components/MemberAddress.tsx

This file was deleted.

11 changes: 9 additions & 2 deletions packages/nextjs/app/builders/_components/MembersList.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import MemberAddress from "./MemberAddress";
import Link from "next/link";
import { AiOutlineLoading3Quarters } from "react-icons/ai";
import { Address } from "~~/components/scaffold-eth";
import { useScaffoldEventHistory } from "~~/hooks/scaffold-eth";

const MembersList = () => {
Expand All @@ -22,7 +23,13 @@ const MembersList = () => {
</div>
)}
{MembersList?.map((member, i) => {
return <MemberAddress key={i} address={member.args.builder} />;
return (
<Link key={i} href={`/builders/${member?.args?.builder}`}>
<div className="bg-primary-content text-secondary px-3 py-2 rounded-[10px] my-3 shadow-xl">
<Address address={member?.args?.builder} />
</div>
</Link>
);
})}
</div>
);
Expand Down

0 comments on commit fa2da44

Please sign in to comment.