Skip to content

Commit

Permalink
Fixed bug with leaderboard icon being gone.
Browse files Browse the repository at this point in the history
  • Loading branch information
Spicer Matthews committed Jan 13, 2025
1 parent 7847fe1 commit fc39505
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,39 @@ const Index = ({ data: fallbackData, userAgent }) => {
</Link>
)}

{user && (
<IconButton
style={{
height: 40,
width: 40,
backgroundColor: 'white',
boxShadow: '0px 2px 4px grey',
}}
onClick={openLeaderboard}
>
<div
style={{ display: 'flex', flexDirection: 'column' }}
>
<svg
width="30px"
height="30px"
version="1.1"
viewBox="0 0 128 128"
xmlns="http://www.w3.org/2000/svg"
>
<defs>
<clipPath id="a">
<path d="m28 23.695h72v80.609h-72z" />
</clipPath>
</defs>
<g clipPath="url(#a)">
<path d="m50.961 26.066c0-1.3086 1.0625-2.3711 2.3711-2.3711h21.336c1.3086 0 2.3711 1.0625 2.3711 2.3711h7.1133c1.3086 0 2.3711 1.0625 2.3711 2.3711v4.7422c0 5.2383-4.2461 9.4844-9.4844 9.4844h-2.1094c-1.9141 2.9336-4.9805 5.0547-8.5586 5.7109v4.957h4.7422c1.3086 0 2.3711 1.0625 2.3711 2.3711s-1.0625 2.3711-2.3711 2.3711h-14.227c-1.3086 0-2.3711-1.0625-2.3711-2.3711s1.0625-2.3711 2.3711-2.3711h4.7422v-4.957c-3.5781-0.65625-6.6445-2.7773-8.5586-5.7109h-2.1094c-5.2383 0-9.4844-4.2461-9.4844-9.4844v-4.7422c0-1.3086 1.0625-2.3711 2.3711-2.3711zm0 4.7422h-4.7422v2.3711c0 2.6172 2.1211 4.7422 4.7422 4.7422h0.21484c-0.14062-0.76953-0.21484-1.5625-0.21484-2.3711zm26.078 0v4.7422c0 0.80859-0.074218 1.6016-0.21484 2.3711h0.21484c2.6211 0 4.7422-2.125 4.7422-4.7422v-2.3711zm-29.637 49.789h52.16v9.4805h-52.16zm-4.7383 0v9.4805h-14.227v-9.4805zm4.7383 23.707v-9.4844h52.16v5.9297c0 1.9609-1.5898 3.5547-3.5547 3.5547zm-4.7383 0h-10.672c-1.9648 0-3.5547-1.5938-3.5547-3.5547v-5.9297h14.227zm4.7383-37.934h48.605c1.9648 0 3.5547 1.5938 3.5547 3.5547v5.9297h-52.16zm-4.7383 0v9.4844h-14.227v-5.9297c0-1.9609 1.5898-3.5547 3.5547-3.5547z" />
</g>
</svg>
</div>
</IconButton>
)}

<div className={classes.moneyRaisedContainer}>
<Typography
variant="h5"
Expand Down

0 comments on commit fc39505

Please sign in to comment.