forked from GivFNZ/my-website
Compare commits
No commits in common. "48ec66bc9836b3ab06de489990e93d0dd611141d" and "cdcb76578514494518854c05348a02bdc87326c6" have entirely different histories.
48ec66bc98
...
cdcb765785
@ -12,19 +12,16 @@ export default function Music() {
|
||||
queryKey: ['song'],
|
||||
queryFn: getRecentTracks
|
||||
})
|
||||
const isAvailable = false;
|
||||
if(isAvailable){
|
||||
return (
|
||||
<MainContainer>
|
||||
<MusicTitle>{t("myLast")}</MusicTitle>
|
||||
<MusicDescription>{t("myLastDescription")}</MusicDescription>
|
||||
<Paragraph>{lastResponse?.recenttracks?.track[0].name} - {lastResponse?.recenttracks?.track[0].artist["#text"]}</Paragraph>
|
||||
<IconLink target="blank" href={lastResponse?.recenttracks?.track[0].url}>{t("lastLink")}</IconLink>
|
||||
{lastResponse?.recenttracks?.track[0]?.date?.["#text"] ?
|
||||
<Paragraph>{t("lastUpdate")}{lastResponse?.recenttracks?.track[0]?.date["#text"]} UTC</Paragraph>
|
||||
: <Paragraph>{t("currentlyListening")}</Paragraph>
|
||||
}
|
||||
</MainContainer>
|
||||
)
|
||||
}
|
||||
return (
|
||||
<MainContainer>
|
||||
<MusicTitle>{t("myLast")}</MusicTitle>
|
||||
<MusicDescription>{t("myLastDescription")}</MusicDescription>
|
||||
<Paragraph>{lastResponse?.recenttracks?.track[0].name} - {lastResponse?.recenttracks?.track[0].artist["#text"]}</Paragraph>
|
||||
<IconLink target="blank" href={lastResponse?.recenttracks?.track[0].url}>{t("lastLink")}</IconLink>
|
||||
{lastResponse?.recenttracks?.track[0]?.date?.["#text"] ?
|
||||
<Paragraph>{t("lastUpdate")}{lastResponse?.recenttracks?.track[0]?.date["#text"]} UTC</Paragraph>
|
||||
: <Paragraph>{t("currentlyListening")}</Paragraph>
|
||||
}
|
||||
</MainContainer>
|
||||
)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user