From 070ac1b82387b3456d57eecb02ec542ef5bbc5ed Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 24 May 2022 13:23:11 -0400 Subject: [PATCH] fix more shorthand eslint warnings (#27952) --- components/Search.tsx | 2 +- components/guides/ArticleCards.tsx | 2 +- components/landing/TableOfContents.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/Search.tsx b/components/Search.tsx index d3fd54884601..6627ff3fba49 100644 --- a/components/Search.tsx +++ b/components/Search.tsx @@ -339,7 +339,7 @@ function ShowSearchResults({ const versions = Array.from(latestVersions).map((version) => { return { title: allVersions[version].versionTitle, - version: version, + version, } }) diff --git a/components/guides/ArticleCards.tsx b/components/guides/ArticleCards.tsx index d39b26fd8a58..c22611ef40b8 100644 --- a/components/guides/ArticleCards.tsx +++ b/components/guides/ArticleCards.tsx @@ -50,7 +50,7 @@ export const ArticleCards = () => { const guides = isUserFiltering ? filteredResults : includeGuides || [] const types = Object.entries(guideTypes).map(([key, val]) => { - return { text: val, key: key } + return { text: val, key } }) as ItemInput[] types.unshift({ text: t('filters.all'), key: undefined }) diff --git a/components/landing/TableOfContents.tsx b/components/landing/TableOfContents.tsx index 3a08027062ae..8e434d0f9d42 100644 --- a/components/landing/TableOfContents.tsx +++ b/components/landing/TableOfContents.tsx @@ -66,7 +66,7 @@ export const TableOfContents = (props: Props) => { } : { key: href, - title: title, + title, renderItem: () => (