mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-24 19:59:12 +00:00
fix(ServerCard): black names should be white
This commit is contained in:
parent
16a4445a3f
commit
dc4400aa34
1 changed files with 7 additions and 1 deletions
|
@ -2,4 +2,10 @@ import color from 'color'
|
|||
|
||||
export const msgToReal = msg => msg.replace(/</g, '<').replace(/\n/g, '<br />')
|
||||
|
||||
export const colorToCSS = colorInt => color(colorInt).hsl().string()
|
||||
export const colorToCSS = colorInt => {
|
||||
if (colorInt === 0) {
|
||||
return '#fff'
|
||||
}
|
||||
|
||||
return color(colorInt).hsl().string()
|
||||
}
|
Loading…
Add table
Reference in a new issue