add: fixes

This commit is contained in:
AzizbekFayziyev 2025-09-13 22:09:47 +05:00
parent 69f3d6b1e1
commit 3d2d96d680
4 changed files with 10 additions and 4 deletions

View file

@ -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>

View file

@ -108,6 +108,11 @@
}
}
.disabled {
opacity: .5;
pointer-events: none;
}
.applyAlert {
display: flex;
gap: 20px;
@ -194,4 +199,4 @@
}
}
}
}
}

View file

@ -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());

View file

@ -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;