Guides listing

This commit is contained in:
Kamran Ahmed
2021-09-02 18:08:02 +02:00
parent c097017520
commit fc159ecb9b
3 changed files with 5 additions and 2 deletions

View File

@ -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 (
<Link
href={href}
fontSize={['14px', '14px', '15px']}
py='9px'
d='flex'