add: fixes
This commit is contained in:
parent
69f3d6b1e1
commit
3d2d96d680
4 changed files with 10 additions and 4 deletions
|
|
@ -197,8 +197,8 @@ function InputPanelItem(props: InputPanelItemProps) {
|
|||
invalid={!!amountState && !amountValid}
|
||||
/>
|
||||
|
||||
<div>
|
||||
<RangeInput value={rangeInputValue} onInput={onRangeInput} />
|
||||
<div className={classes(isBuy && styles.disabled)}>
|
||||
<RangeInput value={!isBuy ? rangeInputValue : '50'} onInput={onRangeInput} />
|
||||
<div className={styles.inputPanel__body_labels}>
|
||||
<p className={styles.inputPanel__body_labels__item}>0%</p>
|
||||
<p className={styles.inputPanel__body_labels__item}>100%</p>
|
||||
|
|
|
|||
|
|
@ -108,6 +108,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
.disabled {
|
||||
opacity: .5;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.applyAlert {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
|
|
@ -194,4 +199,4 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -14,6 +14,7 @@ const useFilteredData = ({ ordersHistory, ordersBuySell }: useFilteredDataParams
|
|||
const filteredOrdersHistory = ordersHistory
|
||||
?.filter((e) => (ordersBuySell.code === 'all' ? e : e.type === ordersBuySell.code))
|
||||
?.filter((e) => e.user.address !== state.wallet?.address)
|
||||
?.filter((e) => parseFloat(e.left.toString()) !== 0)
|
||||
?.sort((a, b) => {
|
||||
if (ordersBuySell.code === 'buy') {
|
||||
return parseFloat(b.price.toString()) - parseFloat(a.price.toString());
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ function takeOrderClick({
|
|||
const e = PageOrderData;
|
||||
|
||||
const priceStr = notationToString(new Decimal(e.price).toString()) || '';
|
||||
const amountStr = notationToString(new Decimal(e.amount).toString()) || '';
|
||||
const amountStr = notationToString(new Decimal(e.left).toString()) || '';
|
||||
|
||||
const secondCurrencyDP = pairData?.second_currency?.asset_info?.decimal_point || 12;
|
||||
const firstCurrencyDP = pairData?.first_currency?.asset_info?.decimal_point || 12;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue