Skip to content

Commit

Permalink
add typing
Browse files Browse the repository at this point in the history
  • Loading branch information
L03TJ3 committed Oct 25, 2024
1 parent 28d5ed2 commit 106211a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/app/src/hooks/useTotalStats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { formatGoodDollarAmount } from '../lib/calculateGoodDollarAmounts';
type StatsFormatted = {
amount: string;
};
type TotalStats = {
export type TotalStats = {
totalDonations: StatsFormatted;
totalPools: StatsFormatted;
totalMembers: StatsFormatted;
Expand Down
3 changes: 2 additions & 1 deletion packages/app/src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Box, HStack, ScrollView, Spinner, Text, useBreakpointValue, VStack } fr
import { Platform } from 'react-native';

import { useTotalStats } from '../hooks';
import type { TotalStats } from '../hooks';
import { useScreenSize } from '../theme/hooks';

import ActionButton from '../components/ActionButton';
Expand Down Expand Up @@ -53,7 +54,7 @@ const CollectivesContainer: FC<PropsWithChildren> = ({ children }) => {
);
};

const statsCopy = {
const statsCopy: { [K in keyof TotalStats]: { copy: string } } = {
totalPools: {
copy: 'GoodCollective pools',
},
Expand Down

0 comments on commit 106211a

Please sign in to comment.