fix: updating user orders

This commit is contained in:
AzizbekFayziyev 2025-06-02 14:16:34 +05:00
parent a05dea1133
commit 4e45757a30
3 changed files with 20 additions and 15 deletions

View file

@ -23,6 +23,7 @@ interface InputPanelItemProps {
totalValid: boolean;
totalUsd: string | undefined;
scrollToOrderList: () => void;
updateUserOrders: () => void;
}
export default InputPanelItemProps;

View file

@ -68,6 +68,7 @@ function InputPanelItem(props: InputPanelItemProps) {
totalValid,
totalUsd,
scrollToOrderList,
updateUserOrders
} = props;
const [creatingState, setCreatingState] = useState(false);
@ -162,6 +163,8 @@ function InputPanelItem(props: InputPanelItemProps) {
setAlertSubtitle('');
}, 3000);
}
updateUserOrders();
}
function onRangeInput(e: ChangeEvent<HTMLInputElement>) {

View file

@ -784,14 +784,14 @@ function Trading() {
{e.isInstant && <BadgeStatus />}
{(state.wallet?.connected && state.wallet?.alias ? state.wallet?.alias : '')
?.length > 12 && (
<Tooltip
className={styles.table__tooltip_right}
arrowClass={styles.table__tooltip_arrow}
shown={showTooltip}
>
{state.wallet?.connected && state.wallet?.alias}
</Tooltip>
)}
<Tooltip
className={styles.table__tooltip_right}
arrowClass={styles.table__tooltip_arrow}
shown={showTooltip}
>
{state.wallet?.connected && state.wallet?.alias}
</Tooltip>
)}
{/* High volume */}
{/* <BadgeStatus type="high" /> */}
</td>
@ -1071,13 +1071,13 @@ function Trading() {
pairData.first_currency?.name &&
pairData.second_currency?.name
) ? (
'...'
) : (
<>
{firstCurrencyName}
<span>/{secondCurrencyName}</span>
</>
)}
'...'
) : (
<>
{firstCurrencyName}
<span>/{secondCurrencyName}</span>
</>
)}
</p>
<div className={styles.trading__currency__rate}>
<p>
@ -1172,6 +1172,7 @@ function Trading() {
totalValid,
totalUsd,
scrollToOrderList,
updateUserOrders
})}
</div>
<div className={styles.trading__chart__wrapper}>