Skip to content

Commit 4570523

Browse files
committed
lint
1 parent a8c9f50 commit 4570523

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dotcom-rendering/src/components/CardHeadline.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ export const CardHeadline = ({
224224
storylinesStyle,
225225
}: Props) => {
226226
// The link is only applied directly to the headline if it is a sublink
227-
// When storylinesStyle is true, treat it as a sublink for hover purposes
228227
const isSublink = !!linkTo;
229228

230229
const fontStyles = getFonts(format, fontSizes);

dotcom-rendering/src/model/enhanceTagPageStorylinesContent.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
import type { Group } from '../lib/getDataLinkName';
2+
import { getDataLinkNameCard } from '../lib/getDataLinkName';
13
import type { DCRFrontCard, DCRGroupedTrails } from '../types/front';
24
import type {
35
ArticleData,
46
CategoryContent,
57
ParsedStoryline,
68
StorylinesContent,
79
} from '../types/storylinesContent';
8-
import { getDataLinkNameCard, Group } from '../lib/getDataLinkName';
910

1011
function decideFormatForArticle(
1112
category: CategoryContent,
@@ -54,7 +55,7 @@ function parseArticleDataToFrontCard(
5455
const dataLinkName = getDataLinkNameCard(format, group, index);
5556
return {
5657
format,
57-
dataLinkName: dataLinkName,
58+
dataLinkName,
5859
url: article.url,
5960
headline: article.headline,
6061
trailText: undefined,

0 commit comments

Comments
 (0)