Skip to content

Commit

Permalink
fixed not changing cursor upon nft img hover
Browse files Browse the repository at this point in the history
  • Loading branch information
sonata22 committed Dec 15, 2023
1 parent c1be918 commit b45a496
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ const NftComponent = (nftData) => {
display: "flex",
justifyContent: "center",
alignItems: "center",
cursor: cursor,
};
const nftTemplate = {
width: "220px",
Expand All @@ -194,8 +195,8 @@ const NftComponent = (nftData) => {
<div style={nftTemplate}>
<div
style={imgWithHoverStyle}
onMouseEnter={() => { setEyeIconOpacity("1"); setOpacity("0.7"); }}
onMouseLeave={() => { setEyeIconOpacity("0"); setOpacity("0"); }}
onMouseEnter={() => { setEyeIconOpacity("1"); setOpacity("0.7"); setCursor("pointer"); }}
onMouseLeave={() => { setEyeIconOpacity("0"); setOpacity("0"); setCursor("default"); }}
>
<div style={nftImgHoverBg}></div>
<svg style={eyeIconStyle} xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M15 12c0 1.654-1.346 3-3 3s-3-1.346-3-3 1.346-3 3-3 3 1.346 3 3zm9-.449s-4.252 8.449-11.985 8.449c-7.18 0-12.015-8.449-12.015-8.449s4.446-7.551 12.015-7.551c7.694 0 11.985 7.551 11.985 7.551zm-7 .449c0-2.757-2.243-5-5-5s-5 2.243-5 5 2.243 5 5 5 5-2.243 5-5z" fill="#ffffff" /></svg>
Expand Down

0 comments on commit b45a496

Please sign in to comment.