Files
weave-scope/client/app/scripts/charts/nodes-error.js
Simon Howe 7d14a787be Adds a loading indicator for the initial node-load
- 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.
2016-07-28 16:28:12 +02:00

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>
);
}