From fc159ecb9b47dc18d52f79183da36b2a2e344143 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Thu, 2 Sep 2021 18:08:02 +0200 Subject: [PATCH] Guides listing --- components/links-list-item.tsx | 4 +++- content/guides.json | 2 +- pages/index.tsx | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/components/links-list-item.tsx b/components/links-list-item.tsx index 0a210a42e..a2022e1f9 100644 --- a/components/links-list-item.tsx +++ b/components/links-list-item.tsx @@ -2,6 +2,7 @@ import React from 'react'; import { Badge, Flex, Link, Text } from '@chakra-ui/react'; type LinksListItemProps = { + href: string; title: string; subtitle: string; badgeText?: string; @@ -10,10 +11,11 @@ type LinksListItemProps = { }; export function LinksListItem(props: LinksListItemProps) { - const { title, subtitle, badgeText, icon, hideSubtitleOnMobile = false } = props; + const { title, subtitle, badgeText, icon, hideSubtitleOnMobile = false, href } = props; return ( (