From 3ea9011d409b180c778954bdb282162227edb754 Mon Sep 17 00:00:00 2001 From: "jackson@near.org" Date: Wed, 13 Mar 2024 11:23:44 -0700 Subject: [PATCH] chore: add changes from fresh develop branch pull --- src/data/bos-components.ts | 3 +++ src/pages/bosblog/index.tsx | 25 ++++++++++++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/src/data/bos-components.ts b/src/data/bos-components.ts index c82bc5b52..214984763 100644 --- a/src/data/bos-components.ts +++ b/src/data/bos-components.ts @@ -3,6 +3,7 @@ import type { NetworkId } from '@/utils/types'; type NetworkComponents = { applicationsPage: string; blog: string; + blogPost: string; bosDirectory: string; componentSummary: string; componentsPage: string; @@ -72,6 +73,7 @@ export const componentsByNetworkId = ((): Record { const components = useBosComponents(); + const { requestAuthentication } = useSignInRedirect(); + const router = useRouter(); + const accountId = router.query.accountId; + const blockHeight = router.query.blockHeight; + + if (accountId && blockHeight) { + return ( + + ); + } return ( { description: 'The latest on the Near Ecosystem', }} componentProps={{ - blogPostIds: [75675], + requestAuthentication, }} /> );