Skip to content
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

Merged
merged 169 commits into from Sep 25, 2017
Merged

Conversation

lauriejim
Copy link
Contributor

No description provided.

Aurelsicoko and others added 14 commits September 21, 2017 15:44
Merge branch 'plugin/content-type-builder-dev' of github.com:strapi/strapi 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>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary?

Copy link
Contributor

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 = [];
Copy link
Member

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;
}, []);

Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants