Skip to content

Commit a7d0f80

Browse files
committed
Fix unused variables in components
1 parent 324b3fe commit a7d0f80

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎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)