mirror of
https://github.com/lexogrine/cs2-react-hud.git
synced 2026-05-03 12:03:10 +02:00
updated csgogsi
This commit is contained in:
@@ -22,7 +22,7 @@ function stringToClock(time: string | number, pad = true) {
|
||||
interface IProps {
|
||||
match: Match | null;
|
||||
map: I.Map;
|
||||
phase: I.PhaseRaw,
|
||||
phase: I.CSGO["phase_countdowns"],
|
||||
bomb: I.Bomb | null,
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { PhaseRaw } from "csgogsi";
|
||||
import { CSGO } from "csgogsi";
|
||||
|
||||
interface IProps {
|
||||
phase: PhaseRaw | null;
|
||||
phase: CSGO["phase_countdowns"] | null;
|
||||
}
|
||||
|
||||
const Pause = ({ phase }: IProps) => {
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { Map, PhaseRaw } from "csgogsi";
|
||||
import { Map, CSGO } from "csgogsi";
|
||||
|
||||
interface IProps {
|
||||
phase: PhaseRaw | null;
|
||||
phase: CSGO["phase_countdowns"] | null;
|
||||
map: Map;
|
||||
}
|
||||
|
||||
const Timeout = ({ phase, map }: IProps) => {
|
||||
const time = phase && Math.abs(Math.ceil(parseFloat(phase.phase_ends_in)));
|
||||
const time = phase && Math.abs(Math.ceil(phase.phase_ends_in));
|
||||
const team = phase && phase.phase === "timeout_t" ? map.team_t : map.team_ct;
|
||||
|
||||
return (
|
||||
|
||||
@@ -31,7 +31,7 @@ export const useBombTimer = () => {
|
||||
const state = bomb?.state || null;
|
||||
const site = bomb?.site || null;
|
||||
|
||||
const countdown = parseFloat(bomb?.countdown || '0');
|
||||
const countdown = bomb?.countdown || 0;
|
||||
|
||||
setPlayerSteamId(bombPlayer);
|
||||
setBombState(state);
|
||||
|
||||
Reference in New Issue
Block a user