mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 07:33:17 +00:00
Remove const styles
This commit is contained in:
parent
d0908022b9
commit
d8d7670ace
@ -23,6 +23,8 @@
|
||||
* - handleFocus : function
|
||||
* - placeholder : string if set to "" nothing will display
|
||||
*
|
||||
*
|
||||
* - styles are retrieved from the HOC
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
@ -107,10 +109,8 @@ class InputNumber extends React.Component { // eslint-disable-line react/prefer-
|
||||
const bootStrapClassDanger = !this.props.deactivateErrorHighlight && !isEmpty(this.state.errors) ? 'has-danger' : '';
|
||||
const placeholder = this.props.placeholder || this.props.name;
|
||||
|
||||
// retrieve styles from WithInput HOC
|
||||
const styles = this.props.styles;
|
||||
return (
|
||||
<div className={`${styles.inputNumber} ${bootStrapClass} ${bootStrapClassDanger}`}>
|
||||
<div className={`${this.props.styles.inputNumber} ${bootStrapClass} ${bootStrapClassDanger}`}>
|
||||
<label htmlFor={this.props.name}><FormattedMessage {...{id: this.props.name}} /></label>
|
||||
<input
|
||||
type="number"
|
||||
|
||||
@ -23,6 +23,8 @@
|
||||
* - description : input description
|
||||
* - handleFocus : function
|
||||
* - placeholder : string if set to "" nothing will display
|
||||
*
|
||||
* - styles are retrieved from the HOC
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
@ -123,11 +125,8 @@ class InputText extends React.Component { // eslint-disable-line react/prefer-st
|
||||
const bootStrapClassDanger = !this.props.deactivateErrorHighlight && !isEmpty(this.state.errors) ? 'has-danger' : '';
|
||||
const placeholder = this.props.placeholder || this.props.name;
|
||||
|
||||
// retrieve styles from WhitInput HOC
|
||||
const styles = this.props.styles;
|
||||
|
||||
return (
|
||||
<div className={`${styles.inputText} ${bootStrapClass} ${bootStrapClassDanger}`}>
|
||||
<div className={`${this.props.styles.inputText} ${bootStrapClass} ${bootStrapClassDanger}`}>
|
||||
<label htmlFor={this.props.name}><FormattedMessage {...{id: this.props.name}} /></label>
|
||||
<input
|
||||
name={this.props.target}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user