File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/routes/mission/$missionId/-components Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export default function MissionNotTriedDefault({
1818 onStart,
1919} : MissionNotTriedDefaultProps ) {
2020 return (
21- < div className = "flex flex-col bg-neutral-900" >
21+ < div className = "fixed inset-0 flex flex-col bg-neutral-900" >
2222 < MissionDetailHeader type = "close" />
2323
2424 < div className = "flex-1 flex flex-col items-center gap-4 px-4" >
@@ -40,7 +40,7 @@ export default function MissionNotTriedDefault({
4040 </ div >
4141 </ div >
4242
43- < div className = "w-full h-full max-w-[85vw] flex items-center justify-center" >
43+ < div className = "w-full max-w-[85vw] flex items-center justify-center" >
4444 < MissionGridCard
4545 sectorName = { sectorName }
4646 difficulty = { difficulty }
Original file line number Diff line number Diff line change 11import { useQuery } from "@tanstack/react-query" ;
22import { useNavigate } from "@tanstack/react-router" ;
33import { getRouteMissionRecommendationByAttempt } from "@/generated/attempts/attempts" ;
4+ import { getHeaderToken } from "@/utils/cookie" ;
45import MissionGridCard from "../../-components/MissionGridCard" ;
56import { useCarousel } from "../../-hooks/useCarousel" ;
67import MissionDetailHeader from "./MissionDetailHeader" ;
@@ -17,7 +18,10 @@ export default function MissionNotTriedSuccess({
1718
1819 const { data : missions } = useQuery ( {
1920 queryKey : [ "mission-not-tried-success" , attemptId ] ,
20- queryFn : ( ) => getRouteMissionRecommendationByAttempt ( attemptId ?? 0 ) ,
21+ queryFn : ( ) =>
22+ getRouteMissionRecommendationByAttempt ( attemptId ?? 0 , {
23+ headers : getHeaderToken ( ) ,
24+ } ) ,
2125 select : ( data ) => data . data ?? [ ] ,
2226 } ) ;
2327
You can’t perform that action at this time.
0 commit comments