Skip to content

Commit d3c9109

Browse files
Fix unused variables in components (#1634)
Co-authored-by: Priyankar Pal <88102392+priyankarpal@users.noreply.github.com>
1 parent c53b9d4 commit d3c9109

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common/playleaderboard/TopPlayCreators.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const TopPlayCreators = ({ topPlayCreators }) => {
1414
const secondPlace = topPlayCreators.length > 1 ? topPlayCreators[1] : null;
1515
const thirdPlace = topPlayCreators.length > 2 ? topPlayCreators[2] : null;
1616

17-
const renderRankIcon = (rank) => {
17+
const renderRankIcon = () => {
1818
return <TagRoundedIcon className="rank-icon rank-same" />;
1919
};
2020

src/common/playlists/PlayCard.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import userImage from 'images/user.png';
99
const formatDate = (dateString) => dateString || '';
1010

1111
function PlayCard({ play, cover, likeObject }) {
12-
const [isExpanded, setIsExpanded] = useState(false);
12+
const [isExpanded] = useState(false);
1313
if (!play || !play.github || !play.slug) return null;
1414

1515
const avatarSrc =

0 commit comments

Comments
 (0)