New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin content type builder dev #252
Conversation
Merge branch 'plugin/content-type-builder-dev' of https://github.com/strapi/strapi into plugin/content-type-builder-dev
…trapi into plugin/content-type-builder-dev
Merge branch 'plugin/content-type-builder-dev' of github.com:strapi/strapi into plugin/content-type-builder-dev
…trapi into plugin/content-type-builder-dev
Merge branch 'plugin/content-type-builder-dev' of github.com:strapi/strapi into plugin/content-type-builder-dev
const notifActive = link.active ? <div className={styles.notifPoint} /> : ''; | ||
return ( | ||
<Link key={key} className={styles.headerLink} to={`${baseUrl}/${link.name}`} activeClassName={styles.linkActive}> | ||
<div></div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, BTW it's a component from the settings-manager
} | ||
|
||
componentDidMount() { | ||
const requiredInputs = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still not a big fan of the use of forEach
loop to populate an array.
const requiredInputs = Object.keys(this.props.sections).reduce((acc, current) => {
acc.concat(
this.props.sections[current].items
.filter(item => has(item.validations, 'required'))
.map(item => item.target)
);
return acc;
}, []);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code doesn't exist anymore. BTW it's a component from the settings-manager
No description provided.