-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
alterando visual dos inputs e do select
feat: alterando visual dos inputs
- Loading branch information
Showing
10 changed files
with
223 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,26 @@ | ||
import React, { PureComponent } from 'react'; | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import classNames from 'classnames'; | ||
// styles | ||
import styles from '../form.styl'; | ||
|
||
class FormActions extends PureComponent { | ||
constructor(props, context) { | ||
super(props, context); | ||
} | ||
const FormActions = ({ children, className }) => { | ||
const fullClassName = classNames(className, styles['form-group-actions']); | ||
|
||
static defaultProps = { | ||
children: undefined, | ||
className: undefined, | ||
}; | ||
return ( | ||
<div className={fullClassName}> | ||
{children} | ||
</div> | ||
); | ||
}; | ||
|
||
static propTypes = { | ||
children: PropTypes.node, | ||
className: PropTypes.string, | ||
}; | ||
FormActions.defaultProps = { | ||
children: undefined, | ||
className: undefined, | ||
}; | ||
|
||
render() { | ||
const { children, className } = this.props; | ||
const fullClassName = classNames(className, styles['form-group-actions']); | ||
|
||
return ( | ||
<div className={fullClassName}> | ||
{children} | ||
</div> | ||
); | ||
} | ||
} | ||
FormActions.propTypes = { | ||
children: PropTypes.node, | ||
className: PropTypes.string, | ||
}; | ||
|
||
export default FormActions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.