From 275a68a7f0488d630dc243bc205b370325c89f4a Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Thu, 27 Apr 2023 09:04:37 -0700 Subject: [PATCH] Small fixes. Click through laoding overlay, take amount calc with no api/info. --- frontend/src/basic/OrderPage/index.tsx | 2 +- frontend/src/basic/RobotPage/RobotProfile.tsx | 3 --- frontend/src/components/BookTable/index.tsx | 11 +++++++++-- frontend/src/components/OrderDetails/TakeButton.tsx | 4 ++-- frontend/src/components/OrderDetails/index.tsx | 2 +- 5 files changed, 13 insertions(+), 9 deletions(-) diff --git a/frontend/src/basic/OrderPage/index.tsx b/frontend/src/basic/OrderPage/index.tsx index 948be1b8..a8dd3cec 100644 --- a/frontend/src/basic/OrderPage/index.tsx +++ b/frontend/src/basic/OrderPage/index.tsx @@ -35,9 +35,9 @@ const OrderPage = (): JSX.Element => { const [tab, setTab] = useState<'order' | 'contract'>('contract'); useEffect(() => { - setCurrentOrder(Number(params.orderId)); if (currentOrder != params.orderId) { clearOrder(); + setCurrentOrder(Number(params.orderId)); } }, [params.orderId]); diff --git a/frontend/src/basic/RobotPage/RobotProfile.tsx b/frontend/src/basic/RobotPage/RobotProfile.tsx index e1b0777d..d47fcc0d 100644 --- a/frontend/src/basic/RobotPage/RobotProfile.tsx +++ b/frontend/src/basic/RobotPage/RobotProfile.tsx @@ -16,7 +16,6 @@ import { import { Bolt, Add, DeleteSweep, Logout, Download } from '@mui/icons-material'; import RobotAvatar from '../../components/RobotAvatar'; import TokenInput from './TokenInput'; -import { Page } from '../NavBar'; import { Slot, Robot } from '../../models'; import { AppContext, UseAppStoreType } from '../../contexts/AppContext'; import { genBase62Token } from '../../utils'; @@ -156,7 +155,6 @@ const RobotProfile = ({