File tree Expand file tree Collapse file tree
src/pages/simple-mode/simpleDrinkDetail Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ interface Recipe {
2929
3030const 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
You can’t perform that action at this time.
0 commit comments