Compare commits
No commits in common. "a1b0889f49c917389d23de92e5377ad1e76f3738" and "a5604335c1fdf4757a996e0a54cf5317b1172a43" have entirely different histories.
a1b0889f49
...
a5604335c1
@ -8,7 +8,6 @@ import useWebSocket, { ReadyState } from "react-use-websocket";
|
|||||||
import { ScoreSaberWebsocketMessageToken } from "@ssr/common/types/token/scoresaber/websocket/scoresaber-websocket-message";
|
import { ScoreSaberWebsocketMessageToken } from "@ssr/common/types/token/scoresaber/websocket/scoresaber-websocket-message";
|
||||||
import Score from "@/components/score/score";
|
import Score from "@/components/score/score";
|
||||||
import { getScoreSaberLeaderboardFromToken, getScoreSaberScoreFromToken } from "@ssr/common/token-creators";
|
import { getScoreSaberLeaderboardFromToken, getScoreSaberScoreFromToken } from "@ssr/common/token-creators";
|
||||||
import { Avatar, AvatarImage } from "@/components/ui/avatar";
|
|
||||||
|
|
||||||
export default function ScoreFeed() {
|
export default function ScoreFeed() {
|
||||||
const { readyState, lastJsonMessage } = useWebSocket<ScoreSaberWebsocketMessageToken>("wss://scoresaber.com/ws");
|
const { readyState, lastJsonMessage } = useWebSocket<ScoreSaberWebsocketMessageToken>("wss://scoresaber.com/ws");
|
||||||
@ -52,15 +51,12 @@ export default function ScoreFeed() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div key={score.scoreId} className="flex flex-col py-2">
|
<div key={score.scoreId} className="flex flex-col py-2">
|
||||||
<div className="flex flex-row gap-2 items-center">
|
<p className="text-sm">
|
||||||
<Avatar className="w-6 h-6">
|
Set by{" "}
|
||||||
<AvatarImage src={player.profilePicture} />
|
|
||||||
</Avatar>
|
|
||||||
<Link href={`/player/${player.id}`}>
|
<Link href={`/player/${player.id}`}>
|
||||||
<span className="text-ssr hover:brightness-[66%] transition-all transform-gpu">{player.name}</span>
|
<span className="text-ssr hover:brightness-[66%] transition-all transform-gpu">{player.name}</span>
|
||||||
</Link>
|
</Link>
|
||||||
<p className="text-gray-400 text-xs"> on {scoreToken.score.deviceHmd || "Unknown Device"}</p>
|
</p>
|
||||||
</div>
|
|
||||||
<Score
|
<Score
|
||||||
score={score}
|
score={score}
|
||||||
leaderboard={leaderboard}
|
leaderboard={leaderboard}
|
||||||
|
Reference in New Issue
Block a user