From 17c584475a2f7aa72dab3715ae733d2fe8b3e07d Mon Sep 17 00:00:00 2001 From: Vivian Plasencia Date: Wed, 24 Jul 2024 19:29:40 +0200 Subject: [PATCH] fix: fix cli ethers and subgraph templates --- .../apps/web-app/src/app/groups/page.tsx | 2 +- .../apps/web-app/src/components/PageContainer.tsx | 2 +- .../apps/web-app/next-env.d.ts | 5 +++++ .../apps/web-app/src/app/groups/page.tsx | 2 +- .../apps/web-app/src/components/PageContainer.tsx | 2 +- 5 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 packages/cli-template-monorepo-subgraph/apps/web-app/next-env.d.ts diff --git a/packages/cli-template-monorepo-ethers/apps/web-app/src/app/groups/page.tsx b/packages/cli-template-monorepo-ethers/apps/web-app/src/app/groups/page.tsx index 2f2d3a60d..8e72752ef 100644 --- a/packages/cli-template-monorepo-ethers/apps/web-app/src/app/groups/page.tsx +++ b/packages/cli-template-monorepo-ethers/apps/web-app/src/app/groups/page.tsx @@ -124,7 +124,7 @@ export default function GroupsPage() {
{_users.map((user, i) => (
-

{user}

+

{user.toString()}

))}
diff --git a/packages/cli-template-monorepo-ethers/apps/web-app/src/components/PageContainer.tsx b/packages/cli-template-monorepo-ethers/apps/web-app/src/components/PageContainer.tsx index dff3f40c5..63b1499ee 100644 --- a/packages/cli-template-monorepo-ethers/apps/web-app/src/components/PageContainer.tsx +++ b/packages/cli-template-monorepo-ethers/apps/web-app/src/components/PageContainer.tsx @@ -21,7 +21,7 @@ export default function PageContainer({ useEffect(() => { semaphore.refreshUsers() semaphore.refreshFeedback() - }, [semaphore]) + }, []) function getExplorerLink(network: SupportedNetwork, address: string) { switch (network) { diff --git a/packages/cli-template-monorepo-subgraph/apps/web-app/next-env.d.ts b/packages/cli-template-monorepo-subgraph/apps/web-app/next-env.d.ts new file mode 100644 index 000000000..4f11a03dc --- /dev/null +++ b/packages/cli-template-monorepo-subgraph/apps/web-app/next-env.d.ts @@ -0,0 +1,5 @@ +/// +/// + +// NOTE: This file should not be edited +// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/packages/cli-template-monorepo-subgraph/apps/web-app/src/app/groups/page.tsx b/packages/cli-template-monorepo-subgraph/apps/web-app/src/app/groups/page.tsx index 0c9de5326..c29a4864e 100644 --- a/packages/cli-template-monorepo-subgraph/apps/web-app/src/app/groups/page.tsx +++ b/packages/cli-template-monorepo-subgraph/apps/web-app/src/app/groups/page.tsx @@ -124,7 +124,7 @@ export default function GroupsPage() {
{_users.map((user, i) => (
-

{user}

+

{user.toString()}

))}
diff --git a/packages/cli-template-monorepo-subgraph/apps/web-app/src/components/PageContainer.tsx b/packages/cli-template-monorepo-subgraph/apps/web-app/src/components/PageContainer.tsx index dff3f40c5..63b1499ee 100644 --- a/packages/cli-template-monorepo-subgraph/apps/web-app/src/components/PageContainer.tsx +++ b/packages/cli-template-monorepo-subgraph/apps/web-app/src/components/PageContainer.tsx @@ -21,7 +21,7 @@ export default function PageContainer({ useEffect(() => { semaphore.refreshUsers() semaphore.refreshFeedback() - }, [semaphore]) + }, []) function getExplorerLink(network: SupportedNetwork, address: string) { switch (network) {