-
Notifications
You must be signed in to change notification settings - Fork 1
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 #165 from MinaFoundation/feature/voting-fund-distr…
…ibution Feature/voting fund distribution
- Loading branch information
Showing
11 changed files
with
443 additions
and
78 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { type FC } from 'react' | ||
import { notFound } from 'next/navigation' | ||
import { VotingService } from '@/services/VotingService' | ||
import { prisma } from '@/lib/prisma' | ||
import { VotingPhaseFundsDistributionSummary } from '@/components/phase-summary/VotingPhaseFundsDistributionSummary' | ||
|
||
type Props = { | ||
params: Promise<{ | ||
id: string | ||
}> | ||
} | ||
|
||
const VotingPhaseFundsDistributionSummaryPage = async ({ params }: Props) => { | ||
const { id } = await params | ||
const votingService = new VotingService(prisma) | ||
|
||
try { | ||
const summary = | ||
await votingService.getVotingPhaseFundsDistributionSummary(id) | ||
console.log(summary) | ||
|
||
return ( | ||
<div className="container mx-auto max-w-7xl py-6"> | ||
<VotingPhaseFundsDistributionSummary | ||
summary={summary} | ||
fundingRoundId={id} | ||
/> | ||
</div> | ||
) | ||
} catch (error) { | ||
return notFound() | ||
} | ||
} | ||
|
||
export default VotingPhaseFundsDistributionSummaryPage |
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
Oops, something went wrong.