Skip to content

Commit d6647fc

Browse files
committed
Remove console.log
1 parent 59f7cc9 commit d6647fc

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/components/most-popular/MostPopular.jsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import React from 'react';
2-
import { useSelector } from 'utils/react-redux-hooks';
1+
import React from "react";
2+
import { useSelector } from "utils/react-redux-hooks";
33

4-
import NewsPlaceholder from 'assets/newsPlaceholder.png';
4+
import NewsPlaceholder from "assets/newsPlaceholder.png";
55

66
import {
77
MostPopularContainer,
@@ -12,7 +12,7 @@ import {
1212
ImageContainer,
1313
SeeAll,
1414
MostPopularWithHeader,
15-
} from './MostPopular.styles';
15+
} from "./MostPopular.styles";
1616

1717
const MostPopular = () => {
1818
const { popular, width } = useSelector((state) => state.news);
@@ -35,23 +35,22 @@ const MostPopular = () => {
3535
<StoryContainer>
3636
<StoryTitle font="var(--font-header)">
3737
{width > 830
38-
? story.title.split(' ').slice(0, 6).join(' ')
38+
? story.title.split(" ").slice(0, 6).join(" ")
3939
: story.title}
4040
...
4141
</StoryTitle>
4242
<StoryTitle color="var(--gray)">
4343
{width > 830
44-
? story.abstract.split(' ').slice(0, 10).join(' ')
44+
? story.abstract.split(" ").slice(0, 10).join(" ")
4545
: story.abstract}
4646
...
4747
</StoryTitle>
4848
</StoryContainer>
4949
<ImageContainer
5050
background={
51-
(console.log(story.media[0]),
5251
story.media[0]
53-
? story.media[0]['media-metadata'][2].url
54-
: NewsPlaceholder)
52+
? story.media[0]["media-metadata"][2].url
53+
: NewsPlaceholder
5554
}
5655
/>
5756
</PopularStoriesContainer>

0 commit comments

Comments
 (0)