diff --git a/apps/hub/src/app/governance/[genre]/components/delegate-modal.tsx b/apps/hub/src/app/governance/[genre]/components/delegate-modal.tsx index 48bfca5e0..9f5b92a70 100644 --- a/apps/hub/src/app/governance/[genre]/components/delegate-modal.tsx +++ b/apps/hub/src/app/governance/[genre]/components/delegate-modal.tsx @@ -20,7 +20,7 @@ import { Icons } from "@bera/ui/icons"; import { Address, isAddress } from "viem"; import { Skeleton } from "@bera/ui/skeleton"; import Identicon from "@bera/shared-ui/src/identicon"; -import { useGovernance } from "../../components/governance-provider"; +import { useGovernance } from "./governance-provider"; import { InputWithLabel } from "@bera/ui/input"; export const DelegateModal = ({ diff --git a/apps/hub/src/app/governance/[genre]/components/go-to-if-has-voting-power.tsx b/apps/hub/src/app/governance/[genre]/components/go-to-if-has-voting-power.tsx index 7ca9213f0..79c13102a 100644 --- a/apps/hub/src/app/governance/[genre]/components/go-to-if-has-voting-power.tsx +++ b/apps/hub/src/app/governance/[genre]/components/go-to-if-has-voting-power.tsx @@ -5,7 +5,7 @@ import { ActionButton } from "@bera/shared-ui"; import { Address } from "viem"; import Link from "next/link"; import { governanceTokenAddress } from "@bera/config"; -import { useGovernance } from "../../components/governance-provider"; +import { useGovernance } from "./governance-provider"; export const GoToIfHasVotingPower = ({ governorAddress, diff --git a/apps/hub/src/app/governance/[genre]/components/governance-by-status.tsx b/apps/hub/src/app/governance/[genre]/components/governance-by-status.tsx index fbe63aa26..1a36bc8a1 100755 --- a/apps/hub/src/app/governance/[genre]/components/governance-by-status.tsx +++ b/apps/hub/src/app/governance/[genre]/components/governance-by-status.tsx @@ -1,21 +1,18 @@ +"use client"; + import React from "react"; import Link from "next/link"; +import { governorAddress } from "@bera/config"; import { Button } from "@bera/ui/button"; import { Icons } from "@bera/ui/icons"; -import { Address } from "viem"; -import { Dapp } from "../../governance-genre-helper"; +import { GoToIfHasVotingPower } from "./go-to-if-has-voting-power"; +import { useGovernance } from "./governance-provider"; import { ProposalsList } from "./proposals-list"; import { UserVotingPower } from "./user-voting-power"; -import { GoToIfHasVotingPower } from "./go-to-if-has-voting-power"; -export default function GovernanceByStatus({ - dapp, - governorAddress, -}: { - dapp: Dapp; - governorAddress: Address; -}) { +export default function GovernanceByStatus() { + const { dappConfig } = useGovernance(); return (
- {dapp.name} + {dappConfig.name}
-
+
Vote on proposals
or create your own