1
0
mirror of synced 2025-12-25 02:17:36 -05:00

update React components that use the homepage version

This commit is contained in:
Sarah Schneider
2021-06-22 15:16:01 -04:00
parent 9839afa806
commit 43c04966e5
5 changed files with 9 additions and 22 deletions

View File

@@ -44,7 +44,7 @@ type LandingPageProps = {
function LandingPage(props: LandingPageProps) {
const router = useRouter()
const { gettingStartedLinks, popularLinks } = props
const { activeProducts, isHomepageVersion } = useMainContext()
const { activeProducts } = useMainContext()
const { currentVersion } = useVersion()
const { t } = useTranslation(['homepage', 'search', 'toc'])
return (
@@ -80,7 +80,7 @@ function LandingPage(props: LandingPageProps) {
</h2>
<div className="d-flex flex-wrap gutter gutter-xl-spacious">
{activeProducts.map((product) => {
if (!product.versions?.includes(currentVersion) && !isHomepageVersion) {
if (!product.versions?.includes(currentVersion) && !product.external) {
return null
}