Merge remote-tracking branch 'refs/remotes/origin/player-join'
This commit is contained in:
commit
feaf96c10e
|
@ -21,18 +21,28 @@ export default function PlayerInfo({ playerId }: { playerId: string }) {
|
||||||
<div className="ScoreForm">
|
<div className="ScoreForm">
|
||||||
<div className='ElemGroup'>
|
<div className='ElemGroup'>
|
||||||
<p className='Elems' style={{ "color": "white" }}>
|
<p className='Elems' style={{ "color": "white" }}>
|
||||||
name
|
name:
|
||||||
</p>
|
</p>
|
||||||
<p className='Elems' style={{ "color": "white" }}>
|
<p className='Elems' style={{ "color": "white" }}>
|
||||||
{player?.name}
|
{player?.name}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className='ElemGroup'></div>
|
<div className='ElemGroup'>
|
||||||
<p className='Elems' style={{ "color": "white" }}>
|
<p className='Elems' style={{ "color": "white" }}>
|
||||||
{JSON.stringify(player)}
|
kills:
|
||||||
</p>
|
</p>
|
||||||
|
<p className='Elems' style={{ "color": "white" }}>
|
||||||
|
{player?.kills}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div className='ElemGroup'>
|
||||||
|
<p className='Elems' style={{ "color": "white" }}>
|
||||||
|
deaths:
|
||||||
|
</p>
|
||||||
|
<p className='Elems' style={{ "color": "white" }}>
|
||||||
|
{player?.deaths}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div >;
|
</div >;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
export type PlayerResponse = {
|
export type PlayerResponse = {
|
||||||
readonly name: string;
|
readonly name: string;
|
||||||
readonly id: string;
|
readonly id: string;
|
||||||
|
readonly kills: number;
|
||||||
|
readonly deaths: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export async function fetchTyped<T>({ url, method }: { url: URL; method: string; }) {
|
export async function fetchTyped<T>({ url, method }: { url: URL; method: string; }) {
|
||||||
|
|
Loading…
Reference in a new issue