import React from 'react'; import { Alert, Form, Switch, InputNumber } from 'antd'; export default function render(props) { const { offlineAccount } = props.data; const { t } = props.methods; if (offlineAccount) { return (
{ config.depositLoss = value; if (value === false) { config.depositLossRatio = undefined; } update(config); }}/> {config.depositLoss && { config.depositLossRatio = value; update(config); }}/> } ); } }