mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
Fix PR feedback
This commit is contained in:
parent
b98905a394
commit
77115d93a1
@ -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';
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user