diff --git a/frontend/src/pages/knowledge-hub/index.tsx b/frontend/src/pages/knowledge-hub/index.tsx index 1ebd577e..74cb1f73 100644 --- a/frontend/src/pages/knowledge-hub/index.tsx +++ b/frontend/src/pages/knowledge-hub/index.tsx @@ -1,20 +1,28 @@ import { useRef } from 'react'; +import { useAtomValue } from 'jotai'; + import Cta from '@/components/static-pages/cta'; import Intro from '@/components/static-pages/intro'; import Section from '@/components/static-pages/section'; import { PAGES } from '@/constants/pages'; import CardFilters from '@/containers/knowledge-hub/card-filters'; import CardList from '@/containers/knowledge-hub/card-list'; +import { cardFiltersAtom } from '@/containers/knowledge-hub/store'; import Layout, { Content } from '@/layouts/static-page'; const KnowledgeHubPage = () => { const sectionRef = useRef(null); + const filters = useAtomValue(cardFiltersAtom); const handleIntroScrollClick = () => { sectionRef?.current?.scrollIntoView({ behavior: 'smooth' }); }; + const title = filters.resourceType + ? `${filters.resourceType.toLocaleLowerCase()} resources` + : 'all 30x30 resources'; + return ( {

I am looking for... -
Data Tools. +
{title}.