server connections

This commit is contained in:
Jan Prochazka
2020-05-01 13:19:42 +02:00
parent ca7eea8a05
commit bfef6b57dd
7 changed files with 72 additions and 40 deletions

View File

@@ -26,15 +26,12 @@ export function FontIcon({ icon, ...props }) {
let className = props.className || '';
// if (_.startsWith(name, 'bs-')) className += ` glyphicon glyphicon-${name.substr(3)}`;
if (type == 'fas' || type == 'far') className += ` ${type} ${name} ${parts.join(' ')}`;
if (_.includes(parts, 'spin')) className += ' fa-spin';
const style = { ...props.style };
const last = parts[parts.length - 1];
if (last && last != 'spin') {
if (last && last != 'fa-spin') {
style['color'] = last;
}