Skip to content

Commit

Permalink
fix: eslint rules applied
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonath-z committed Dec 28, 2022
1 parent b14893f commit 4bfb92d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": ["next"]
"extends": ["next"],
"rules": {
"@next/next/no-img-element": "off"
}
}
6 changes: 4 additions & 2 deletions components/AlbumPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const AlbumPage = () => {
<img
src={topSongsData[2].img}
className="w-12 h-12 object-cover m-10 rounded-xl"
alt={topSongsData[2].artist}
/>
<div>
<p className="font-bold">{topSongsData[2].artist}</p>
Expand All @@ -42,13 +43,14 @@ const AlbumPage = () => {
<img
src={equalizer.src}
className="w-[20rem] h-[20rem] object-cover"
alt="equalizer"
/>
</div>
<BottomPlayer isFixed={false} />
</div>
<div className="w-full flex flex-col md:flex-wrap ml-5 mobile:h-fit">
{topSongsData.map((song) => {
return <SongCard song={song} />;
{topSongsData.map((song, index) => {
return <SongCard key={index} song={song} />;
})}
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions components/modules/HotSongs/HotSongsCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const HotSongsCard: FC<HotSongsCardProps> = ({ data }) => {
className="w-1/2 bg-white px-5 py-5 rounded-xl shadow-xl mobile:w-full mobile:mx-0"
title="Hot Songs"
>
{data.map((song) => {
return <SongCard song={song} />;
{data.map((song, index) => {
return <SongCard key={index} song={song} />;
})}
</Carousel>
);
Expand Down

0 comments on commit 4bfb92d

Please sign in to comment.