mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-18 20:21:35 +00:00
Fix routing to order on bookpage floating maker form
This commit is contained in:
parent
4adde72fd5
commit
0e17121999
@ -13,7 +13,7 @@ import { BarChart, FormatListBulleted } from '@mui/icons-material';
|
||||
import { AppContext, UseAppStoreType } from '../../contexts/AppContext';
|
||||
|
||||
const BookPage = (): JSX.Element => {
|
||||
const { robot, fetchBook, windowSize, book, setDelay, setOrder } =
|
||||
const { robot, fetchBook, windowSize, setDelay, setOrder } =
|
||||
useContext<UseAppStoreType>(AppContext);
|
||||
const { t } = useTranslation();
|
||||
const navigate = useNavigate();
|
||||
@ -82,7 +82,6 @@ const BookPage = (): JSX.Element => {
|
||||
<MakerForm
|
||||
hasRobot={robot.avatarLoaded}
|
||||
onOrderCreated={(id) => {
|
||||
setPage('order');
|
||||
navigate('/order/' + id);
|
||||
}}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user