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'],
|
queryKey: ['song'],
|
||||||
queryFn: getRecentTracks
|
queryFn: getRecentTracks
|
||||||
})
|
})
|
||||||
const isAvailable = false;
|
return (
|
||||||
if(isAvailable){
|
<MainContainer>
|
||||||
return (
|
<MusicTitle>{t("myLast")}</MusicTitle>
|
||||||
<MainContainer>
|
<MusicDescription>{t("myLastDescription")}</MusicDescription>
|
||||||
<MusicTitle>{t("myLast")}</MusicTitle>
|
<Paragraph>{lastResponse?.recenttracks?.track[0].name} - {lastResponse?.recenttracks?.track[0].artist["#text"]}</Paragraph>
|
||||||
<MusicDescription>{t("myLastDescription")}</MusicDescription>
|
<IconLink target="blank" href={lastResponse?.recenttracks?.track[0].url}>{t("lastLink")}</IconLink>
|
||||||
<Paragraph>{lastResponse?.recenttracks?.track[0].name} - {lastResponse?.recenttracks?.track[0].artist["#text"]}</Paragraph>
|
{lastResponse?.recenttracks?.track[0]?.date?.["#text"] ?
|
||||||
<IconLink target="blank" href={lastResponse?.recenttracks?.track[0].url}>{t("lastLink")}</IconLink>
|
<Paragraph>{t("lastUpdate")}{lastResponse?.recenttracks?.track[0]?.date["#text"]} UTC</Paragraph>
|
||||||
{lastResponse?.recenttracks?.track[0]?.date?.["#text"] ?
|
: <Paragraph>{t("currentlyListening")}</Paragraph>
|
||||||
<Paragraph>{t("lastUpdate")}{lastResponse?.recenttracks?.track[0]?.date["#text"]} UTC</Paragraph>
|
}
|
||||||
: <Paragraph>{t("currentlyListening")}</Paragraph>
|
</MainContainer>
|
||||||
}
|
)
|
||||||
</MainContainer>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user