-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from berachain/feat/add-bera-subgraph-governance
Feature: base structure update
- Loading branch information
Showing
18 changed files
with
157 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { PROPOSAL_GENRE } from "../governance-genre-helper"; | ||
import { GovernanceProvider } from "./components/governance-provider"; | ||
|
||
export default function Layout({ | ||
children, | ||
params, | ||
}: { | ||
children: React.ReactNode; | ||
params: { genre: PROPOSAL_GENRE }; | ||
}) { | ||
return ( | ||
<GovernanceProvider genre={params.genre}>{children}</GovernanceProvider> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,6 @@ | ||
"use client"; | ||
|
||
import React from "react"; | ||
import { notFound } from "next/navigation"; | ||
|
||
import { | ||
PROPOSAL_GENRE, | ||
getDappByGenre, | ||
isValidGenre, | ||
} from "../governance-genre-helper"; | ||
import GovernanceByStatus from "./components/governance-by-status"; | ||
import { governorAddress } from "@bera/config"; | ||
|
||
export default function Page({ | ||
params, | ||
}: { | ||
params: { genre: PROPOSAL_GENRE }; | ||
}) { | ||
if (!isValidGenre(params.genre)) return notFound(); | ||
|
||
return ( | ||
<GovernanceByStatus | ||
governorAddress={governorAddress} | ||
dapp={getDappByGenre(params.genre)!} | ||
/> | ||
); | ||
export default function Page() { | ||
return <GovernanceByStatus />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.