Skip to content

Commit f10bf03

Browse files
fix $id
1 parent 7a31779 commit f10bf03

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pages/simple-mode/simpleDrinkDetail/simpleDrinkDetail.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ interface Recipe {
2929

3030
const SimpleDrinkDetail = () => {
3131
const location = useLocation();
32-
const navigate = useNavigate({ from: '/simple/drinks/$drinkId' });
32+
const navigate = useNavigate({ from: '/simple/drink/$id' });
3333
const recipe = (location.state as any)?.recipe as Recipe | undefined;
3434

3535
// Redirect if no recipe data
@@ -73,7 +73,7 @@ const SimpleDrinkDetail = () => {
7373
type="button"
7474
size="lg"
7575
className="w-full h-12 sm:h-14 gap-2 sm:gap-3 text-sm sm:text-base font-semibold shadow-lg hover:shadow-xl transition-all duration-200 active:scale-95"
76-
onClick={() => navigate({ to: '/simple/order', state: { recipe } })}
76+
onClick={() => navigate({ to: '/simple/order' } as any)}
7777
>
7878
<Beaker className="w-4 h-4 sm:w-5 sm:h-5" />
7979
Make Drink

0 commit comments

Comments
 (0)