@@ -3,13 +3,13 @@ import { mockAliens } from '../data/mockAliens';
33import type { AlienProfile } from '../data/mockAliens' ;
44import { useAppContext } from '../context/AppContext' ;
55import ProfileModal from './ProfileModal' ;
6- import MatchOverlay from './MatchOverlay' ;
76import { getCompatibility } from '../utils/compatibility' ;
7+ import { useRocketNav } from '../context/TransitionContext' ;
88
99export default function OrbitSystem ( ) {
1010 const { preferences, addMatch, matches } = useAppContext ( ) ;
11+ const triggerRocketNav = useRocketNav ( ) ;
1112 const [ selectedAlien , setSelectedAlien ] = useState < AlienProfile | null > ( null ) ;
12- const [ matchedAlien , setMatchedAlien ] = useState < AlienProfile | null > ( null ) ;
1313 const [ dismissedIds , setDismissedIds ] = useState < Set < string > > ( new Set ( ) ) ;
1414
1515 // Keep exactly 5 slots for the 5 orbit tracks
@@ -60,7 +60,7 @@ export default function OrbitSystem() {
6060 const handleMatch = ( alien : AlienProfile ) => {
6161 addMatch ( alien ) ;
6262 setSelectedAlien ( null ) ;
63- setMatchedAlien ( alien ) ;
63+ triggerRocketNav ( `/chat/ ${ alien . id } ` , { alienImg : alien . profilePic } ) ;
6464 } ;
6565
6666 const handleDismiss = ( alien : AlienProfile ) => {
@@ -213,12 +213,6 @@ export default function OrbitSystem() {
213213 />
214214 ) }
215215
216- { matchedAlien && (
217- < MatchOverlay
218- alien = { matchedAlien }
219- userName = { preferences . name || 'User' }
220- />
221- ) }
222216 </ >
223217 ) ;
224218}
0 commit comments