use tradeform for checkboxes
This commit is contained in:
parent
3d2b485cf7
commit
598c29fe13
|
@ -362,6 +362,8 @@ const AdvancedTradeForm = () => {
|
||||||
: tradeForm.postOnly
|
: tradeForm.postOnly
|
||||||
? PerpOrderType.postOnly
|
? PerpOrderType.postOnly
|
||||||
: PerpOrderType.limit
|
: PerpOrderType.limit
|
||||||
|
console.log('perpOrderType', perpOrderType)
|
||||||
|
|
||||||
const tx = await client.perpPlaceOrder(
|
const tx = await client.perpPlaceOrder(
|
||||||
group,
|
group,
|
||||||
mangoAccount,
|
mangoAccount,
|
||||||
|
@ -580,7 +582,7 @@ const AdvancedTradeForm = () => {
|
||||||
content={t('trade:tooltip-post')}
|
content={t('trade:tooltip-post')}
|
||||||
>
|
>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
checked={savedCheckboxSettings.post}
|
checked={tradeForm.postOnly}
|
||||||
onChange={(e) => handlePostOnlyChange(e.target.checked)}
|
onChange={(e) => handlePostOnlyChange(e.target.checked)}
|
||||||
>
|
>
|
||||||
{t('trade:post')}
|
{t('trade:post')}
|
||||||
|
@ -596,7 +598,7 @@ const AdvancedTradeForm = () => {
|
||||||
>
|
>
|
||||||
<div className="flex items-center text-xs text-th-fgd-3">
|
<div className="flex items-center text-xs text-th-fgd-3">
|
||||||
<Checkbox
|
<Checkbox
|
||||||
checked={savedCheckboxSettings.ioc}
|
checked={tradeForm.ioc}
|
||||||
onChange={(e) => handleIocChange(e.target.checked)}
|
onChange={(e) => handleIocChange(e.target.checked)}
|
||||||
>
|
>
|
||||||
IOC
|
IOC
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
regenerator-runtime "^0.13.11"
|
regenerator-runtime "^0.13.11"
|
||||||
|
|
||||||
"@blockworks-foundation/mango-v4@^0.9.14":
|
"@blockworks-foundation/mango-v4@^0.9.15":
|
||||||
version "0.9.14"
|
version "0.9.16"
|
||||||
resolved "https://registry.yarnpkg.com/@blockworks-foundation/mango-v4/-/mango-v4-0.9.14.tgz#e46f890d3321e5ea9b1f7cb84713e64b68d8af45"
|
resolved "https://registry.yarnpkg.com/@blockworks-foundation/mango-v4/-/mango-v4-0.9.16.tgz#9a3e70c95e46f112e7a204cd80d42a1c26e7d484"
|
||||||
integrity sha512-g0Bv5q5znOPk9GTI3cKsXLxWF+lNF/sn1xLg0RNDwyuVCejM0eqJ2X6hfFIBRGVSolScvG+1w5BuEO8sBcD+Hg==
|
integrity sha512-tyGtLiVQeWwxggSnkv1tqT3akeIpsiFtAcNuXPiJKfm/zwgPhLLOAsFbl0cr9IGqtV7uY/+CmKSqL2dHJD2czg==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@coral-xyz/anchor" "^0.26.0"
|
"@coral-xyz/anchor" "^0.26.0"
|
||||||
"@project-serum/serum" "0.13.65"
|
"@project-serum/serum" "0.13.65"
|
||||||
|
|
Loading…
Reference in New Issue