diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-10-13 14:28:29 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-10-13 14:28:29 +0530 |
commit | 097a393b2bf170d69ba1cef16c5e70f204e2fe65 (patch) | |
tree | 91254e3de332506be13cff7bea74cca170fe3efc /src/components/editors/brand-editor.js | |
parent | 300a4eb39ccea56da416d83400cddc97118e1649 (diff) |
added an invoice summary component
Diffstat (limited to 'src/components/editors/brand-editor.js')
-rw-r--r-- | src/components/editors/brand-editor.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/components/editors/brand-editor.js b/src/components/editors/brand-editor.js index 64950ec..7796c68 100644 --- a/src/components/editors/brand-editor.js +++ b/src/components/editors/brand-editor.js @@ -18,7 +18,7 @@ import { Brand, saveBrand, editBrand } from './../../classes/brand' import './scss/brand-editor.scss' -import { useState, useEffect } from 'react'; +import { useState } from 'react'; const BrandEditor = (props) => { const [name, setName] = useState(props.brand.Name); @@ -54,11 +54,6 @@ const BrandEditor = (props) => { props.editing && props.hide(); } - const validateFloatInput = (e, callback) => { - const f = parseFloat(e.target.value); - f && callback(f) - } - return ( <div className={`editor-wrapper ${props.className ? props.className : ''}`}> <p>{props.heading}</p> |