reworked the sub-navigation on the Match-page
This commit is contained in:
@@ -31,13 +31,13 @@ export const checkStatEmpty = (stat) => {
|
||||
return 0
|
||||
}
|
||||
|
||||
export const getPlayerArr = (stats, team) => {
|
||||
export const getPlayerArr = (stats, team, color) => {
|
||||
let arr = []
|
||||
for (let i = (team - 1) * 5; i < team * 5; i++) {
|
||||
arr.push({
|
||||
value: truncate(stats[i].player.name, 15),
|
||||
value: truncate(stats[i].player.name, 12),
|
||||
textStyle: {
|
||||
color: 'white'
|
||||
color: color ? getComputedStyle(document.documentElement).getPropertyValue(`--csgo-${stats[i].color}`) : 'white'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user