Merge pull request #282 from blockworks-foundation/lou/account-slot-rename
simplify account slot names
This commit is contained in:
commit
5d64c8a6c9
|
@ -92,7 +92,7 @@ const MangoAccountSizeModal = ({ isOpen, onClose }: ModalProps) => {
|
|||
mangoAccount?.serum3.length || MIN_ACCOUNTS
|
||||
if (parseInt(spotOpenOrders) < minSpotOpenOrdersLength) {
|
||||
invalidFields.spotOpenOrders = t('settings:error-amount', {
|
||||
type: t('settings:spot-open-orders'),
|
||||
type: t('settings:spot-markets'),
|
||||
greaterThan: mangoAccount?.serum3.length,
|
||||
lessThan: '17',
|
||||
})
|
||||
|
@ -257,10 +257,10 @@ const MangoAccountSizeModal = ({ isOpen, onClose }: ModalProps) => {
|
|||
}
|
||||
disabled
|
||||
error={formErrors?.spotOpenOrders}
|
||||
label={t('settings:spot-open-orders')}
|
||||
label={t('settings:spot-markets')}
|
||||
handleMax={() => handleMax('spotOpenOrders')}
|
||||
handleSetForm={handleSetForm}
|
||||
tooltipContent={t('settings:tooltip-spot-open-orders', {
|
||||
tooltipContent={t('settings:tooltip-spot-markets', {
|
||||
max: MAX_ACCOUNTS.spotOpenOrders,
|
||||
})}
|
||||
type="spotOpenOrders"
|
||||
|
@ -280,10 +280,10 @@ const MangoAccountSizeModal = ({ isOpen, onClose }: ModalProps) => {
|
|||
}
|
||||
disabled
|
||||
error={formErrors?.perpAccounts}
|
||||
label={t('settings:perp-positions')}
|
||||
label={t('settings:perp-markets')}
|
||||
handleMax={() => handleMax('perpAccounts')}
|
||||
handleSetForm={handleSetForm}
|
||||
tooltipContent={t('settings:tooltip-perp-positions', {
|
||||
tooltipContent={t('settings:tooltip-perp-markets', {
|
||||
max: MAX_ACCOUNTS.perpAccounts,
|
||||
})}
|
||||
type="perpAccounts"
|
||||
|
|
|
@ -302,12 +302,12 @@ const AccountSettings = () => {
|
|||
<Disclosure.Button className="w-full border-t border-th-bkg-3 py-4 md:px-4">
|
||||
<div className="flex items-center justify-between">
|
||||
<Tooltip
|
||||
content={t('settings:tooltip-spot-open-orders', {
|
||||
content={t('settings:tooltip-spot-markets', {
|
||||
max: MAX_ACCOUNTS.spotOpenOrders,
|
||||
})}
|
||||
>
|
||||
<p className="tooltip-underline">
|
||||
{t('settings:spot-open-orders')}
|
||||
{t('settings:spot-markets')}
|
||||
</p>
|
||||
</Tooltip>
|
||||
<ChevronDownIcon
|
||||
|
@ -324,7 +324,7 @@ const AccountSettings = () => {
|
|||
{t('settings:slots-used', {
|
||||
used: usedSerum3.length,
|
||||
total: totalSerum3.length,
|
||||
type: t('settings:spot-open-orders').toLowerCase(),
|
||||
type: t('settings:spot-markets').toLowerCase(),
|
||||
})}
|
||||
</p>
|
||||
<p className="mt-1">{t('settings:close-spot-oo-desc')}</p>
|
||||
|
@ -373,12 +373,12 @@ const AccountSettings = () => {
|
|||
<Disclosure.Button className="w-full border-t border-th-bkg-3 py-4 md:px-4">
|
||||
<div className="flex items-center justify-between">
|
||||
<Tooltip
|
||||
content={t('settings:tooltip-perp-positions', {
|
||||
content={t('settings:tooltip-perp-markets', {
|
||||
max: MAX_ACCOUNTS.perpAccounts,
|
||||
})}
|
||||
>
|
||||
<p className="tooltip-underline">
|
||||
{t('settings:perp-positions')}
|
||||
{t('settings:perp-markets')}
|
||||
</p>
|
||||
</Tooltip>
|
||||
<ChevronDownIcon
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
"percentage": "Percentage",
|
||||
"percentage-of-max": "{{size}}% of Max",
|
||||
"perp-open-orders": "Perp Open Orders",
|
||||
"perp-positions": "Perp Positions",
|
||||
"perp-markets": "Perp Markets",
|
||||
"preferences": "Preferences",
|
||||
"preferred-explorer": "Preferred Explorer",
|
||||
"privacy-disable": "Disable Privacy Mode",
|
||||
|
@ -97,7 +97,7 @@
|
|||
"solscan": "Solscan",
|
||||
"sounds": "Sounds",
|
||||
"spanish": "Español",
|
||||
"spot-open-orders": "Spot Open Orders",
|
||||
"spot-markets": "Spot Markets",
|
||||
"swap-success": "Swap/Trade Success",
|
||||
"swap-trade-size-selector": "Swap/Trade Size Selector",
|
||||
"theme": "Theme",
|
||||
|
@ -107,11 +107,11 @@
|
|||
"tooltip-hot-key-notional-size": "Set size as a USD value.",
|
||||
"tooltip-hot-key-percentage-size": "Set size as a percentage of your max leverage.",
|
||||
"tooltip-hot-key-price": "Set a price as a percentage change from the oracle price.",
|
||||
"tooltip-perp-positions": "The number of perp markets you can have positions in. The maximum for new accounts is {{max}}",
|
||||
"tooltip-perp-open-orders": "The number of perp markets you can have open orders in. The maximum for new accounts is {{max}}",
|
||||
"tooltip-perp-markets": "The number of perp markets you can have positions in. The maximum for new accounts is {{max}}",
|
||||
"tooltip-perp-open-orders": "The number of open orders you can have across all perp markets. The maximum for new accounts is {{max}}",
|
||||
"tooltip-privacy-mode": "Masks the USD values of your account",
|
||||
"tooltip-private-account": "Your account won't show on leaderboards and it won't be viewable via URL",
|
||||
"tooltip-spot-open-orders": "The number of spot markets you can have open orders in. The maximum for new accounts is {{max}}",
|
||||
"tooltip-spot-markets": "The number of spot markets you can have positions in. The maximum for new accounts is {{max}}",
|
||||
"tooltip-token-accounts": "The number of tokens you can hold in your account. The maximum for new accounts is {{max}}",
|
||||
"tooltip-orderbook-bandwidth-saving": "Use an off-chain service for Orderbook updates to decrease data usage by ~1000x. Disable this if open orders are not highlighted in the book correctly.",
|
||||
"top-left": "Top-Left",
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
"percentage": "Percentage",
|
||||
"percentage-of-max": "{{size}}% of Max",
|
||||
"perp-open-orders": "Perp Open Orders",
|
||||
"perp-positions": "Perp Positions",
|
||||
"perp-markets": "Perp Markets",
|
||||
"preferences": "Preferences",
|
||||
"preferred-explorer": "Preferred Explorer",
|
||||
"privacy-disable": "Disable Privacy Mode",
|
||||
|
@ -97,7 +97,7 @@
|
|||
"solscan": "Solscan",
|
||||
"sounds": "Sounds",
|
||||
"spanish": "Español",
|
||||
"spot-open-orders": "Spot Open Orders",
|
||||
"spot-markets": "Spot Markets",
|
||||
"swap-success": "Swap/Trade Success",
|
||||
"swap-trade-size-selector": "Swap/Trade Size Selector",
|
||||
"theme": "Theme",
|
||||
|
@ -107,11 +107,11 @@
|
|||
"tooltip-hot-key-notional-size": "Set size as a USD value.",
|
||||
"tooltip-hot-key-percentage-size": "Set size as a percentage of your max leverage.",
|
||||
"tooltip-hot-key-price": "Set a price as a percentage change from the oracle price.",
|
||||
"tooltip-perp-positions": "The number of perp markets you can have positions in. The maximum for new accounts is {{max}}",
|
||||
"tooltip-perp-open-orders": "The number of perp markets you can have open orders in. The maximum for new accounts is {{max}}",
|
||||
"tooltip-perp-markets": "The number of perp markets you can have positions in. The maximum for new accounts is {{max}}",
|
||||
"tooltip-perp-open-orders": "The number of open orders you can have across all perp markets. The maximum for new accounts is {{max}}",
|
||||
"tooltip-privacy-mode": "Masks the USD values of your account",
|
||||
"tooltip-private-account": "Your account won't show on leaderboards and it won't be viewable via URL",
|
||||
"tooltip-spot-open-orders": "The number of spot markets you can have open orders in. The maximum for new accounts is {{max}}",
|
||||
"tooltip-spot-markets": "The number of spot markets you can have positions in. The maximum for new accounts is {{max}}",
|
||||
"tooltip-token-accounts": "The number of tokens you can hold in your account. The maximum for new accounts is {{max}}",
|
||||
"tooltip-orderbook-bandwidth-saving": "Use an off-chain service for Orderbook updates to decrease data usage by ~1000x. Disable this if open orders are not highlighted in the book correctly.",
|
||||
"top-left": "Top-Left",
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
"percentage": "Percentage",
|
||||
"percentage-of-max": "{{size}}% of Max",
|
||||
"perp-open-orders": "Perp Open Orders",
|
||||
"perp-positions": "Perp Positions",
|
||||
"perp-markets": "Perp Markets",
|
||||
"preferences": "Preferences",
|
||||
"preferred-explorer": "Preferred Explorer",
|
||||
"privacy-disable": "Disable Privacy Mode",
|
||||
|
@ -97,7 +97,7 @@
|
|||
"solscan": "Solscan",
|
||||
"sounds": "Sounds",
|
||||
"spanish": "Español",
|
||||
"spot-open-orders": "Spot Open Orders",
|
||||
"spot-markets": "Spot Markets",
|
||||
"swap-success": "Swap/Trade Success",
|
||||
"swap-trade-size-selector": "Swap/Trade Size Selector",
|
||||
"theme": "Theme",
|
||||
|
@ -107,11 +107,11 @@
|
|||
"tooltip-hot-key-notional-size": "Set size as a USD value.",
|
||||
"tooltip-hot-key-percentage-size": "Set size as a percentage of your max leverage.",
|
||||
"tooltip-hot-key-price": "Set a price as a percentage change from the oracle price.",
|
||||
"tooltip-perp-positions": "The number of perp markets you can have positions in. The maximum for new accounts is {{max}}",
|
||||
"tooltip-perp-open-orders": "The number of perp markets you can have open orders in. The maximum for new accounts is {{max}}",
|
||||
"tooltip-perp-markets": "The number of perp markets you can have positions in. The maximum for new accounts is {{max}}",
|
||||
"tooltip-perp-open-orders": "The number of open orders you can have across all perp markets. The maximum for new accounts is {{max}}",
|
||||
"tooltip-privacy-mode": "Masks the USD values of your account",
|
||||
"tooltip-private-account": "Your account won't show on leaderboards and it won't be viewable via URL",
|
||||
"tooltip-spot-open-orders": "The number of spot markets you can have open orders in. The maximum for new accounts is {{max}}",
|
||||
"tooltip-spot-markets": "The number of spot markets you can have positions in. The maximum for new accounts is {{max}}",
|
||||
"tooltip-token-accounts": "The number of tokens you can hold in your account. The maximum for new accounts is {{max}}",
|
||||
"tooltip-orderbook-bandwidth-saving": "Use an off-chain service for Orderbook updates to decrease data usage by ~1000x. Disable this if open orders are not highlighted in the book correctly.",
|
||||
"top-left": "Top-Left",
|
||||
|
|
|
@ -98,7 +98,7 @@
|
|||
"solscan": "Solscan",
|
||||
"sounds": "声响",
|
||||
"spanish": "Español",
|
||||
"spot-open-orders": "现货未结订单",
|
||||
"spot-markets": "现货未结订单",
|
||||
"swap-success": "换币/交易成功",
|
||||
"swap-trade-size-selector": "换币/交易大小选择器",
|
||||
"theme": "模式",
|
||||
|
@ -110,10 +110,10 @@
|
|||
"tooltip-hot-key-price": "将价格设置为预言机价格变化的百分比。",
|
||||
"tooltip-orderbook-bandwidth-saving": "使用链下服务进行挂单簿更新,将数据使用量减少约 1000 倍。如果未结订单在挂单簿中不正确显示,请禁用此选项。",
|
||||
"tooltip-perp-open-orders": "你可以有未结订单的合约市场数量。新帐户的最多为{{max}}",
|
||||
"tooltip-perp-positions": "你可以有持仓的合约市场数量。新帐户的最多为{{max}}",
|
||||
"tooltip-perp-markets": "你可以有持仓的合约市场数量。新帐户的最多为{{max}}",
|
||||
"tooltip-privacy-mode": "Masks the USD values of your account",
|
||||
"tooltip-private-account": "Your account won't show on leaderboards and it won't be viewable via URL",
|
||||
"tooltip-spot-open-orders": "你可以有未结订单的现货市场数量。新帐户的最多为{{max}}",
|
||||
"tooltip-spot-markets": "你可以有未结订单的现货市场数量。新帐户的最多为{{max}}",
|
||||
"tooltip-token-accounts": "你帐户可以持有的币种数量。新帐户的最多为{{max}}",
|
||||
"top-left": "左上",
|
||||
"top-right": "右上",
|
||||
|
|
|
@ -98,7 +98,7 @@
|
|||
"solscan": "Solscan",
|
||||
"sounds": "聲響",
|
||||
"spanish": "Español",
|
||||
"spot-open-orders": "現貨未結訂單",
|
||||
"spot-markets": "現貨未結訂單",
|
||||
"swap-success": "換幣/交易成功",
|
||||
"swap-trade-size-selector": "換幣/交易大小選擇器",
|
||||
"theme": "模式",
|
||||
|
@ -110,10 +110,10 @@
|
|||
"tooltip-hot-key-price": "將價格設置為預言機價格變化的百分比。",
|
||||
"tooltip-orderbook-bandwidth-saving": "使用鏈下服務進行掛單簿更新,將數據使用量減少約 1000 倍。如果未結訂單在掛單簿中不正確顯示,請禁用此選項。",
|
||||
"tooltip-perp-open-orders": "你可以有未結訂單的合約市場數量。新帳戶的最多為{{max}}",
|
||||
"tooltip-perp-positions": "你可以有持倉的合約市場數量。新帳戶的最多為{{max}}",
|
||||
"tooltip-perp-markets": "你可以有持倉的合約市場數量。新帳戶的最多為{{max}}",
|
||||
"tooltip-privacy-mode": "Masks the USD values of your account",
|
||||
"tooltip-private-account": "Your account won't show on leaderboards and it won't be viewable via URL",
|
||||
"tooltip-spot-open-orders": "你可以有未結訂單的現貨市場數量。新帳戶的最多為{{max}}",
|
||||
"tooltip-spot-markets": "你可以有未結訂單的現貨市場數量。新帳戶的最多為{{max}}",
|
||||
"tooltip-token-accounts": "你帳戶可以持有的幣種數量。新帳戶的最多為{{max}}",
|
||||
"top-left": "左上",
|
||||
"top-right": "右上",
|
||||
|
|
Loading…
Reference in New Issue