Skip to content

Commit

Permalink
change trophy color and authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
AriaYu927 committed Dec 15, 2023
1 parent acb3193 commit 46ab86a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/LeaderBoard/Leaderboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ function LeaderBoard({

// opening the modal
const trophyIconToggle = item => {
setModalOpen(item.personId);
if (loggedInUser.role === 'Owner' || loggedInUser.role === 'Administrator') {
setModalOpen(item.personId);
}
};

// deleting the icon fron that and only that user
Expand Down Expand Up @@ -368,7 +370,7 @@ function LeaderBoard({
role="button"
tabIndex={0}
className="fa fa-trophy"
style={{ marginLeft: '10px', fontSize: '18px', color: '#808080' }}
style={{ marginLeft: '10px', fontSize: '18px', color: '#FF0800' }}
onClick={() => {
trophyIconToggle(item);
}}
Expand Down

0 comments on commit 46ab86a

Please sign in to comment.