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 #243

Merged
merged 34 commits into from
Sep 7, 2017

Conversation

lauriejim
Copy link
Contributor

No description provided.

<div className={styles.buttonContainer}>
<FormattedMessage id="form.button.save">
{(message) => (
<Button type="submit" label={message} buttonSize={"buttonLg"} buttonBackground={"primary"} onClick={this.props.handleSubmit} loader />
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't it better to pass the message id (form.button.save) directly as label in the label prop Button component?

})
);

return (
<div className={`${pluginId} ${styles.app}`}>
{React.Children.toArray(content)}
{React.Children.toArray(content, 'fuck')}
Copy link
Member

Choose a reason for hiding this comment

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

I suppose that this part should be removed.

@@ -13,7 +13,9 @@ module.exports = {

getModel: async ctx => {
const Service = strapi.plugins['content-type-builder'].services.contenttypebuilder;
Copy link
Member

Choose a reason for hiding this comment

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

Service is already defined.

return (
<div className={styles.buttonContainer}>
<FormattedMessage id="form.button.cancel">
{(message) => (
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't it better to pass the message id directly as label in the label prop?

)}
</FormattedMessage>
<FormattedMessage id="form.button.save">
{(message) => (
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't it better to pass the message id directly as label in the label prop?

@pierreburgy
Copy link
Member

LGTM.

@lauriejim lauriejim merged commit 728293b into plugin/content-type-builder Sep 7, 2017
@lauriejim lauriejim deleted the plugin/content-type-builder-pr branch September 7, 2017 14:50
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

3 participants