mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-23 13:48:49 +00:00
display icons depending on the state of the process
This commit is contained in:
parent
62934c5b18
commit
433ca33e57
@ -11,12 +11,19 @@ function stampClasses(state){
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function iconClasses(state){
|
||||||
|
return classNames('fe', {
|
||||||
|
'fe-check-square': state === 'running',
|
||||||
|
'fe-x': state !== 'running'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const Process = ({process}) => (
|
const Process = ({process}) => (
|
||||||
<Grid.Col sm={6} lg={3}>
|
<Grid.Col sm={6} lg={3}>
|
||||||
<Card className="p-3">
|
<Card className="p-3">
|
||||||
<div className="d-flex align-items-center">
|
<div className="d-flex align-items-center">
|
||||||
<span className={stampClasses(process.state)}>
|
<span className={stampClasses(process.state)}>
|
||||||
<i className="fe fa-cube"></i>
|
<i className={iconClasses(process.state)}></i>
|
||||||
</span>
|
</span>
|
||||||
<div>
|
<div>
|
||||||
<h4 className="text-capitalize m-0"><Link to={`/embark/processes/${process.name}`}>{process.name}</Link></h4>
|
<h4 className="text-capitalize m-0"><Link to={`/embark/processes/${process.name}`}>{process.name}</Link></h4>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user