add capitalize

This commit is contained in:
Jonathan Rainville 2018-08-01 14:46:44 -04:00 committed by Pascal Precht
parent d6977507b6
commit 47d7cd3f9d
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
2 changed files with 13 additions and 5 deletions

View File

@ -4,6 +4,8 @@ import {fetchProcesses} from '../actions';
import {Tabs, Tab} from 'tabler-react'; import {Tabs, Tab} from 'tabler-react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import "./css/processContainer.css";
class ProcessesContainer extends Component { class ProcessesContainer extends Component {
componentDidMount() { componentDidMount() {
this.props.fetchProcesses(); this.props.fetchProcesses();
@ -29,11 +31,13 @@ class ProcessesContainer extends Component {
const processNames = Object.keys(processes.data); const processNames = Object.keys(processes.data);
return ( return (
<Tabs initialTab={processNames[0]}> <div className="processes-container">
{processNames.map(processName => { <Tabs initialTab={processNames[0]}>
return (<Tab key={processName} title={processName}>State: {processes.data[processName].state}</Tab>); {processNames.map(processName => {
})} return (<Tab key={processName} title={processName}>State: {processes.data[processName].state}</Tab>);
</Tabs> })}
</Tabs>
</div>
); );
} }
} }

View File

@ -0,0 +1,4 @@
.processes-container .nav-link {
text-transform: capitalize;
}