Refactor guide links and id

This commit is contained in:
Kamran Ahmed
2021-09-03 16:27:30 +02:00
parent e800e3b6ce
commit 96e02195a9
5 changed files with 6 additions and 58 deletions

View File

@@ -65,8 +65,8 @@ export default function Home(props: HomeProps) {
<LinksList>
{guides.map(guide => (
<LinksListItem
key={guide.url}
href={guide.url}
key={guide.id}
href={`/guides/${guide.id}`}
title={guide.title}
badgeText={guide.isPro ? 'PRO' : ''}
subtitle={guide.formattedUpdatedAt!}