From c1464f73beffe0626aa928f37e71ecfb4e620ecb Mon Sep 17 00:00:00 2001 From: soupette Date: Sat, 23 Mar 2019 08:15:06 +0100 Subject: [PATCH] Apply desgin feedback --- .../src/components/PopUpWarning/styles.scss | 1 + .../src/components/CustomCheckbox/index.js | 24 +++++++------- .../HeaderModalNavContainer/styles.scss | 1 + .../src/components/HeaderNavLink/index.js | 6 +++- .../src/components/TableListRow/index.js | 18 ++++++++++- .../AttributesPickerModal/attributes.json | 32 +++++++++---------- 6 files changed, 51 insertions(+), 31 deletions(-) diff --git a/packages/strapi-helper-plugin/lib/src/components/PopUpWarning/styles.scss b/packages/strapi-helper-plugin/lib/src/components/PopUpWarning/styles.scss index 4616bcf0b8..505ce69232 100644 --- a/packages/strapi-helper-plugin/lib/src/components/PopUpWarning/styles.scss +++ b/packages/strapi-helper-plugin/lib/src/components/PopUpWarning/styles.scss @@ -49,6 +49,7 @@ .modalPosition { max-width: 37.5rem !important; + margin: 16rem auto !important; > div { width: 37.5rem; padding: 0 !important; diff --git a/packages/strapi-plugin-content-type-builder/admin/src/components/CustomCheckbox/index.js b/packages/strapi-plugin-content-type-builder/admin/src/components/CustomCheckbox/index.js index 213785c2bf..ff60e838f5 100644 --- a/packages/strapi-plugin-content-type-builder/admin/src/components/CustomCheckbox/index.js +++ b/packages/strapi-plugin-content-type-builder/admin/src/components/CustomCheckbox/index.js @@ -1,8 +1,8 @@ /** -* -* CustomCheckbox -* -*/ + * + * CustomCheckbox + * + */ import React from 'react'; import PropTypes from 'prop-types'; @@ -12,7 +12,8 @@ import InputNumber from 'components/InputNumberWithErrors'; // import styles from './styles.scss'; -class CustomCheckbox extends React.Component { // eslint-disable-line react/prefer-stateless-function +class CustomCheckbox extends React.Component { + // eslint-disable-line react/prefer-stateless-function state = { isChecked: this.props.value !== null && this.props.value !== undefined }; handleChange = ({ target: { checked } }) => { @@ -23,7 +24,7 @@ class CustomCheckbox extends React.Component { // eslint-disable-line react/pref const target = { name, value }; onChange({ target }); - } + }; handleInputNumberChange = ({ target: { value } }) => { const { name, onChange } = this.props; @@ -34,17 +35,17 @@ class CustomCheckbox extends React.Component { // eslint-disable-line react/pref }; onChange({ target }); - } + }; render() { const { isChecked } = this.state; - const { didCheckErrors, errors, label, name, value} = this.props; + const { didCheckErrors, errors, label, name, value } = this.props; return (
{msg => ( -