|
|
|
@ -21,6 +21,7 @@ import { |
|
|
|
import TextField from './form-textfield'; |
|
|
|
import TextField from './form-textfield'; |
|
|
|
import FormStatusIndicator from './form-status-indicator'; |
|
|
|
import FormStatusIndicator from './form-status-indicator'; |
|
|
|
import { isValidUrl } from '../../utils/urls'; |
|
|
|
import { isValidUrl } from '../../utils/urls'; |
|
|
|
|
|
|
|
import ToggleSwitch from './form-toggleswitch-with-submit'; |
|
|
|
// import ToggleSwitch from './form-toggleswitch-with-submit';
|
|
|
|
// import ToggleSwitch from './form-toggleswitch-with-submit';
|
|
|
|
|
|
|
|
|
|
|
|
const { Panel } = Collapse; |
|
|
|
const { Panel } = Collapse; |
|
|
|
@ -145,20 +146,21 @@ export default function EditStorage() { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className={containerClass}> |
|
|
|
<div className={containerClass}> |
|
|
|
<div className="enable-switch"> |
|
|
|
<div className="enable-switch"> |
|
|
|
{/* <ToggleSwitch |
|
|
|
<ToggleSwitch |
|
|
|
|
|
|
|
apiPath="" |
|
|
|
fieldName="enabled" |
|
|
|
fieldName="enabled" |
|
|
|
label="Storage Enabled" |
|
|
|
label="Storage Enabled" |
|
|
|
checked={formDataValues.enabled} |
|
|
|
checked={formDataValues.enabled} |
|
|
|
onChange={handleSwitchChange} |
|
|
|
onChange={handleSwitchChange} |
|
|
|
/> */} |
|
|
|
/> |
|
|
|
<Switch |
|
|
|
{/* <Switch |
|
|
|
checked={formDataValues.enabled} |
|
|
|
checked={formDataValues.enabled} |
|
|
|
defaultChecked={formDataValues.enabled} |
|
|
|
defaultChecked={formDataValues.enabled} |
|
|
|
onChange={handleSwitchChange} |
|
|
|
onChange={handleSwitchChange} |
|
|
|
checkedChildren="ON" |
|
|
|
checkedChildren="ON" |
|
|
|
unCheckedChildren="OFF" |
|
|
|
unCheckedChildren="OFF" |
|
|
|
/>{' '} |
|
|
|
/>{' '} |
|
|
|
Enabled |
|
|
|
Enabled */} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div className="form-fields"> |
|
|
|
<div className="form-fields"> |
|
|
|
|