diff --git a/components/trade_form/SimpleTradeForm.tsx b/components/trade_form/SimpleTradeForm.tsx index 8f34eca1..a93fb8ac 100644 --- a/components/trade_form/SimpleTradeForm.tsx +++ b/components/trade_form/SimpleTradeForm.tsx @@ -328,7 +328,6 @@ export default function SimpleTradeForm({ initLeverage }) { } finally { await sleep(600) actions.reloadMangoAccount() - actions.updateOpenOrders() actions.loadMarketFills() setSubmitting(false) } @@ -493,7 +492,7 @@ export default function SimpleTradeForm({ initLeverage }) { /> -
+
handleSetPositionSize(p)} @@ -561,7 +560,7 @@ export default function SimpleTradeForm({ initLeverage }) { } />
-
+
setStopSizePercent(p)} @@ -574,7 +573,7 @@ export default function SimpleTradeForm({ initLeverage }) { <>
@@ -593,7 +592,7 @@ export default function SimpleTradeForm({ initLeverage }) { } />
-
+
setStopSizePercent(p)} @@ -605,7 +604,7 @@ export default function SimpleTradeForm({ initLeverage }) {
{tradeType === 'Limit' ? ( <> -
+
-
+
) : null} {marketConfig.kind === 'perp' ? ( -
- + reduceOnChange(e.target.checked)} > - reduceOnChange(e.target.checked)} - > - Reduce Only - - -
+ Reduce Only + +
) : null}
diff --git a/components/trade_form/TradeType.jsx b/components/trade_form/TradeType.jsx index 647e2e4a..275666a3 100644 --- a/components/trade_form/TradeType.jsx +++ b/components/trade_form/TradeType.jsx @@ -1,7 +1,5 @@ import { Listbox } from '@headlessui/react' import { ChevronDownIcon, ChevronUpIcon } from '@heroicons/react/solid' -import { useViewport } from '../../hooks/useViewport' -import { breakpoints } from '../TradePageGrid' const TradeType = ({ value, @@ -9,9 +7,6 @@ const TradeType = ({ offerTriggers = false, className = '', }) => { - const { width } = useViewport() - const isMobile = width ? width < breakpoints.sm : false - const TRADE_TYPES = ['Limit', 'Market'] if (offerTriggers) TRADE_TYPES.push(