fix(ServerCard): black names should be white

This commit is contained in:
41666 2020-02-02 14:27:33 -05:00
parent 16a4445a3f
commit dc4400aa34
No known key found for this signature in database
GPG key ID: BC51D07640DC10AF

View file

@ -2,4 +2,10 @@ import color from 'color'
export const msgToReal = msg => msg.replace(/</g, '&lt;').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()
}