Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds group treecounter support for Myforest #2040

Merged
merged 3 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions src/features/user/Profile/components/MyContributions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export default function MyContributions({
const _detailInfo = trpc.myForest.stats.useQuery(
{
profileId: `${profile.id}`,
slug: `${profile.slug}`,
},
{
enabled: !!profile.id,
Expand All @@ -84,7 +85,8 @@ export default function MyContributions({
);
const _conservedGeoJsonData = trpc.myForest.contributionsGeoJson.useQuery(
{
profileId: `${profile.id}`,
profileId: profile.id,
slug: profile.slug,
purpose: Purpose.CONSERVATION,
},
{
Expand All @@ -95,7 +97,8 @@ export default function MyContributions({

const _treePlantedGeoJsonData = trpc.myForest.contributionsGeoJson.useQuery(
{
profileId: `${profile.id}`,
profileId: profile.id,
slug: profile.slug,
purpose: Purpose.TREES,
},
{
Expand All @@ -107,7 +110,8 @@ export default function MyContributions({
const _plantedTreesContribution =
trpc.myForest.contributions.useInfiniteQuery(
{
profileId: `${profile.id}`,
profileId: profile.id,
slug: profile.slug,
limit: 15,
purpose: Purpose.TREES,
},
Expand All @@ -121,7 +125,8 @@ export default function MyContributions({
const _conservationContribution =
trpc.myForest.contributions.useInfiniteQuery(
{
profileId: `${profile.id}`,
profileId: profile.id,
slug: profile.slug,
limit: 15,
purpose: Purpose.CONSERVATION,
},
Expand Down
Loading
Loading