From f169a909364a6a8c0995c0501d79099a465feb77 Mon Sep 17 00:00:00 2001 From: Caleb Jacob Date: Tue, 26 Mar 2024 12:33:14 -0600 Subject: [PATCH] Pass through fetchEventsList to home page for use in LatestEvents component --- src/pages/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index f48691a9e..5c9d48aa1 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -11,6 +11,7 @@ import { useAuthStore } from '@/stores/auth'; import { useCurrentComponentStore } from '@/stores/current-component'; import { useTermsOfServiceStore } from '@/stores/terms-of-service'; import { localStorageAccountIdKey, privacyDomainName, termsDomainName } from '@/utils/config'; +import { fetchEventsList } from '@/utils/events'; import type { NextPageWithLayout } from '@/utils/types'; const HomePage: NextPageWithLayout = () => { @@ -75,6 +76,9 @@ const HomePage: NextPageWithLayout = () => { title: `NEAR | Blockchains, Abstracted`, description: `"NEAR is the chain abstraction stack, empowering builders to create apps that scale to billions of users and across all blockchains."`, }} + componentProps={{ + fetchEventsList, + }} /> ); };