mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
- Sometimes can take a second to get the initial nodes - Not doing the transition between topos atm as its a bit distracting popping up and down.
22 lines
581 B
JavaScript
22 lines
581 B
JavaScript
import React from 'react';
|
|
import classnames from 'classnames';
|
|
|
|
export default function NodesError({children, faIconClass, hidden,
|
|
mainClassName = 'nodes-chart-error'}) {
|
|
const className = classnames(mainClassName, {
|
|
hide: hidden
|
|
});
|
|
const iconClassName = `fa ${faIconClass}`;
|
|
|
|
return (
|
|
<div className={className}>
|
|
<div className="nodes-chart-error-icon-container">
|
|
<div className="nodes-chart-error-icon">
|
|
<span className={iconClassName} />
|
|
</div>
|
|
</div>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|