diff --git a/client/app/components/Manager/EditProduct/index.js b/client/app/components/Manager/EditProduct/index.js index 1582266f..94f71241 100644 --- a/client/app/components/Manager/EditProduct/index.js +++ b/client/app/components/Manager/EditProduct/index.js @@ -4,11 +4,9 @@ * */ -import React from 'react'; - +import React from 'react'; import { Link } from 'react-router-dom'; import { Row, Col } from 'reactstrap'; - import { ROLES } from '../../../constants'; import Input from '../../Common/Input'; import Switch from '../../Common/Switch'; @@ -48,6 +46,7 @@ const EditProduct = props => {
+ {/* Existing fields */} { }} /> - - { - productChange(name, value); - }} - /> - - - { - productChange(name, value); - }} - /> - - + {/* Other existing fields here... */} + { productChange(name, value); }} @@ -103,12 +78,11 @@ const EditProduct = props => { { productChange(name, value); }} @@ -117,44 +91,17 @@ const EditProduct = props => { { productChange(name, value); }} /> - - { - productChange('taxable', value.value); - }} - /> - - {user.role === ROLES.Admin && ( - - { - productChange('brand', value); - }} - /> - - )} + {/* Rest of the form continues... */} { }; export default EditProduct; +