1
0
mirror of https://github.com/lexogrine/dota2-react-hud.git synced 2026-05-04 12:33:11 +02:00

removed assets

This commit is contained in:
Hubert Walczak
2023-05-16 14:09:26 +02:00
parent a0d2d68ba7
commit 34fe3ab977
1611 changed files with 46 additions and 11 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import React from 'react';
import { Draft, Team, Faction, Player, TeamDraft } from 'dotagsi';
import { apiUrl } from '../../api/api';
import { apiUrl, getAssetURL } from '../../api/api';
import CameraContainer from '../Camera/Container';
const ObservedPlayer = ({ players, player, team, show}: { show: boolean, player: Player | null, players: Player[], team: Team | null }) => {
@@ -23,7 +23,7 @@ const ObservedPlayer = ({ players, player, team, show}: { show: boolean, player:
if(!victim || !victim.hero || !victim.hero.name) return null;
return (
<div className="player_kill" style={{ backgroundImage: `url('./heroes/icons/${victim.hero.name.replace('npc_dota_hero_', '')}.png')` }}>X{killEntry.amount}</div>
<div className="player_kill" style={{ backgroundImage: `url('${getAssetURL(victim.hero.name, 'heroes_icons')}')` }}>X{killEntry.amount}</div>
);
})
}</div> : null}