/
var
/
www
/
vhosts
/
ihelp.ro
/
ajutam.ro
/
wp-content
/
plugins
/
give
/
src
/
Views
/
Components
/
Input
/
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/src/Views/Components/Input
mkdir
upload
Name
Size
Mode
Actions
index.js
653
0644
edit
dl
rm
style.module.scss
365
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/src/Views/Components/Input/index.js
(653B)
import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './style.module.scss'; const Input = ({type, name, onChange, value, className, ...rest}) => { return ( <input key={value} className={classNames(styles.input, className)} type={type} name={name} onChange={onChange} value={value} {...rest} /> ); }; Input.propTypes = { // Input type type: PropTypes.string.isRequired, // On change event onChange: PropTypes.func, // Input value value: PropTypes.string, }; export default Input;
Save
cmd:
run