diff options
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> |