@@ -132,6 +145,8 @@ LeverageTab.propTypes = {
increaseLeverage: PropTypes.bool.isRequired,
setIncreaseLeverage: PropTypes.func.isRequired,
isPairSelected: PropTypes.bool.isRequired,
+ disabledInputs: PropTypes.bool.isRequired,
+ isDerivativePair: PropTypes.bool.isRequired,
}
export default LeverageTab
diff --git a/src/modals/Strategy/StrategySettingsModal/tabs/StrategySettings.Orders.js b/src/modals/Strategy/StrategySettingsModal/tabs/StrategySettings.Orders.js
index e5d5edc90..0f58a7d22 100644
--- a/src/modals/Strategy/StrategySettingsModal/tabs/StrategySettings.Orders.js
+++ b/src/modals/Strategy/StrategySettingsModal/tabs/StrategySettings.Orders.js
@@ -14,6 +14,7 @@ const OrdersTab = ({
stopOrderValue,
isPairSelected,
setHasErrors,
+ disabledInputs,
}) => {
const [stopOrderValueError, setStopOrderValueError] = useState('')
const { t } = useTranslation()
@@ -51,7 +52,7 @@ const OrdersTab = ({
)}
checked={additionStopOrder}
- disabled={!isPairSelected}
+ disabled={disabledInputs}
className='appsettings-modal__checkbox'
/>
@@ -78,7 +79,7 @@ const OrdersTab = ({
value={stopOrderValue}
min={0}
max={99}
- disabled={!additionStopOrder || !isPairSelected}
+ disabled={!additionStopOrder || disabledInputs}
/>
{t('strategySettingsModal.stopOrderValuePlaceholder')}
@@ -95,6 +96,7 @@ OrdersTab.propTypes = {
stopOrderValue: PropTypes.string.isRequired,
isPairSelected: PropTypes.bool.isRequired,
setHasErrors: PropTypes.func.isRequired,
+ disabledInputs: PropTypes.bool.isRequired,
}
export default OrdersTab