mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-19 04:31: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';
|
import { AppContext, UseAppStoreType } from '../../contexts/AppContext';
|
||||||
|
|
||||||
const BookPage = (): JSX.Element => {
|
const BookPage = (): JSX.Element => {
|
||||||
const { robot, fetchBook, windowSize, book, setDelay, setOrder } =
|
const { robot, fetchBook, windowSize, setDelay, setOrder } =
|
||||||
useContext<UseAppStoreType>(AppContext);
|
useContext<UseAppStoreType>(AppContext);
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
@ -82,7 +82,6 @@ const BookPage = (): JSX.Element => {
|
|||||||
<MakerForm
|
<MakerForm
|
||||||
hasRobot={robot.avatarLoaded}
|
hasRobot={robot.avatarLoaded}
|
||||||
onOrderCreated={(id) => {
|
onOrderCreated={(id) => {
|
||||||
setPage('order');
|
|
||||||
navigate('/order/' + id);
|
navigate('/order/' + id);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user