Lint logs components
@@ -9,13 +9,13 @@ export interface Props {
export default class Logs extends React.Component<Props, {}> {
- componentDidMount() {
+ public componentDidMount() {
this.props.fetchData();
}
public render() {
const logs = this.props.logs;
- let logsElements = logs.length > 0 ?
+ const logsElements = logs.length > 0 ?
(logs.split('\n').map((line, i) => <p key={i}>{line}</p>)) :
(<p>No logs</p>);
