Skip to content

Commit

Permalink
fix: added feed navigate to profile
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisParedes1 committed Dec 6, 2023
1 parent 840e19b commit afa11ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/navigation/feed-navigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ import { createNativeStackNavigator } from '@react-navigation/native-stack';
import * as React from 'react';

import type { Snap as SnapType } from '@/api';
import type { UserType } from '@/core/auth/utils';
import { AddSnap, Snap } from '@/screens';
import Feed from '@/screens/feed/list';
import ProfileScreen from '@/screens/profile/profile-screen';
import { Pressable, View } from '@/ui';

import { GoToLogout } from './auth-navigator';
Expand All @@ -16,6 +18,7 @@ export type FeedStackParamList = {
Snap: { snap: SnapType };
AddSnap: undefined;
Auth: undefined;
UserProfile: { user: UserType };
};

const Stack = createNativeStackNavigator<FeedStackParamList>();
Expand Down Expand Up @@ -49,6 +52,7 @@ export const FeedNavigator = () => {
</Stack.Group>

<Stack.Screen name="AddSnap" component={AddSnap} />
<Stack.Screen name="UserProfile" component={ProfileScreen} />
</Stack.Navigator>
);
};

0 comments on commit afa11ba

Please sign in to comment.