Skip to content

Commit

Permalink
refactor(website): fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
mkue committed Jan 19, 2024
1 parent 74308bb commit bbe82c5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { DefaultPageProps } from '@/app/[lang]/[region]';
import { firestoreAdmin } from '@/firebase-admin';
import { WebsiteCurrency, WebsiteLanguage, WebsiteRegion } from '@/i18n';
import { Currency } from '@socialincome/shared/src/types/currency';
import { ContributionStatsCalculator } from '@socialincome/shared/src/utils/stats/ContributionStatsCalculator';
import { PaymentStatsCalculator } from '@socialincome/shared/src/utils/stats/PaymentStatsCalculator';
import { BaseContainer, Typography } from '@socialincome/ui';
Expand All @@ -18,7 +19,7 @@ export type TransparencyPageProps = {
} & DefaultPageProps;

export default async function Page(props: TransparencyPageProps) {
const getStats = async (currency: string) => {
const getStats = async (currency: Currency) => {
const contributionCalculator = await ContributionStatsCalculator.build(firestoreAdmin, currency);
const contributionStats = contributionCalculator.allStats();
const paymentCalculator = await PaymentStatsCalculator.build(firestoreAdmin, currency);
Expand Down

0 comments on commit bbe82c5

Please sign in to comment.