diff options
| author | Brendan F <EpicWolverine@users.noreply.github.com> | 2024-02-19 16:24:48 -0800 |
|---|---|---|
| committer | Brendan F <EpicWolverine@users.noreply.github.com> | 2024-02-19 16:24:48 -0800 |
| commit | acf641e705fa2d7c140ca100199fe4b3c377dbe4 (patch) | |
| tree | c0a49dc74fa780f0da21994da9ff3e84a8b56d31 /src/components/Result | |
| parent | 2a747b770c1aa3f5163356b82d4896c057ab9cab (diff) | |
Revert "Add Christmas emotes"
This reverts commit dde27e13fb9b538b5cd1d1235dbc9efcf8a6a773.
Diffstat (limited to 'src/components/Result')
| -rw-r--r-- | src/components/Result/index.tsx | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/components/Result/index.tsx b/src/components/Result/index.tsx index ccf393d..259525b 100644 --- a/src/components/Result/index.tsx +++ b/src/components/Result/index.tsx @@ -21,18 +21,11 @@ function Solution({ todaysSolution, currentTry, }: SolutionProps) { - const todaysDate = new Date(); - const christmasSongDay = todaysDate.getFullYear() == 2023 && todaysDate.getMonth() == 11 && todaysDate.getDate() >= 1 && todaysDate.getDate() <= 25 - const gifs = ["923701894117982238", "655441669893914664", "919955833264160810"] - const randomGif = gifs[Math.floor(Math.random() * gifs.length)]; return ( <> <Styled.SongTitle> Today's song is {todaysSolution.artist} - {todaysSolution.name} </Styled.SongTitle> - {christmasSongDay && - <img src={"https://cdn.discordapp.com/emojis/" + randomGif + ".gif?size=44&quality=lossless"}></img> - } {didGuess && <Styled.Tries> You guessed it in {currentTry} {currentTry === 1 ? 'try' : 'tries'}. |
