Fix PR feedback

This commit is contained in:
soupette 2019-03-27 18:37:53 +01:00
parent b98905a394
commit 77115d93a1
2 changed files with 1 additions and 7 deletions

View File

@ -8,8 +8,6 @@ import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { get, isEmpty } from 'lodash';
// import { connect } from 'react-redux';
// import { bindActionCreators, compose } from 'redux';
import Input from 'components/InputsIndex';

View File

@ -58,11 +58,7 @@ class HomePage extends React.Component {
onChangeNewContentTypeMainInfos,
} = this.props;
const availableNumber = models.length;
const title =
availableNumber > 1
? `${pluginId}.table.contentType.title.plural`
: `${pluginId}.table.contentType.title.singular`;
const title = `${pluginId}.table.contentType.title.${availableNumber > 1 ? 'plural' : 'singular'}`;
const renderViewContent =
availableNumber === 0 ? (
<EmptyContentTypeView handleButtonClick={this.handleClick} /> // eslint-disable-line react/jsx-handler-names