Skip to content

Commit

Permalink
upgrade and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati0x committed Jan 13, 2025
1 parent fecde8d commit 1430d5a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
22 changes: 10 additions & 12 deletions apps/web/app/(app)/gardens/[chain]/[garden]/[community]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,9 @@ export default function Page({
<Button
onClick={() => setOpenCommDetails(!openCommDetails)}
btnStyle="outline"
className="mt-1 w-full"
className="mt-1"
>
{openCommDetails ? "Close" : "See"} Details
{openCommDetails ? "Close" : "View"} Members
</Button>
</div>
<div className="flex flex-1 flex-col gap-2">
Expand Down Expand Up @@ -353,17 +353,15 @@ export default function Page({
registryCommunity={registryCommunity}
/>
</div>
{openCommDetails && (
<CommunityDetailsTable
membersStaked={registryCommunity.members as MembersStaked[]}
tokenGarden={tokenGarden}
communityStakedTokens={communityStakedTokens}
/>
)}
</header>

{/* <Metrics> */}
{openCommDetails && (
<CommunityDetailsTable
membersStaked={registryCommunity.members as MembersStaked[]}
tokenGarden={tokenGarden}
communityStakedTokens={communityStakedTokens}
/>
)}

<IncreasePower
memberData={isMemberResult}
registryCommunity={registryCommunity}
Expand Down Expand Up @@ -503,7 +501,7 @@ const CommunityDetailsTable = ({

return (
<DataTable
title="Community Details"
title="Community Members"
data={membersStaked as MembersStaked[]}
description="Overview of all community members and the total number of tokens they have staked."
columns={columns}
Expand Down
8 changes: 4 additions & 4 deletions apps/web/components/PoolGovernance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ export const PoolGovernance: React.FC<PoolGovernanceProps> = ({
tooltip="No activity in this pool yet."
className="w-full"
>
{openGovDetails ? "Close" : "See"} Details
{openGovDetails ? "Close" : "Open"} Governance Details
</Button>
{openGovDetails && (
<PoolGovernanceDetails membersStrategyData={membersStrategyData} />
)}
</section>
{openGovDetails && (
<PoolGovernanceDetails membersStrategyData={membersStrategyData} />
)}
</>
);
};
Expand Down
22 changes: 12 additions & 10 deletions apps/web/components/Proposals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -483,16 +483,18 @@ export function Proposals({
// Render
return (
<>
<PoolGovernance
memberPoolWeight={memberPoolWeight}
tokenDecimals={tokenDecimals}
strategy={strategy}
communityAddress={communityAddress}
memberTokensInCommunity={memberTokensInCommunity}
isMemberCommunity={isMemberCommunity}
memberActivatedStrategy={memberActivatedStrategy}
membersStrategyData={membersStrategies}
/>
{strategy.isEnabled && (
<PoolGovernance
memberPoolWeight={memberPoolWeight}
tokenDecimals={tokenDecimals}
strategy={strategy}
communityAddress={communityAddress}
memberTokensInCommunity={memberTokensInCommunity}
isMemberCommunity={isMemberCommunity}
memberActivatedStrategy={memberActivatedStrategy}
membersStrategyData={membersStrategies}
/>
)}
<section className="section-layout flex flex-col gap-10 mt-10">
<div>
<header className="flex items-center justify-between gap-10 flex-wrap">
Expand Down

0 comments on commit 1430d5a

Please sign in to comment.