Skip to content

Commit

Permalink
fix: navigation de snaps
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisParedes1 committed Dec 8, 2023
1 parent 729f1a8 commit 72edbf8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
7 changes: 5 additions & 2 deletions src/screens/profile/profile-navigator.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import * as React from 'react';

import type { Snap } from '@/api';
import type { Snap as SnapType } from '@/api';
import type { UserType } from '@/core/auth/utils';
import { SignInComplete } from '@/navigation/signin-complete';
import { Snap } from '@/screens';

import type { Chat } from '../chat/chat-list-screen';
import ChatScreen from '../chat/chat-screen';
Expand All @@ -17,12 +18,13 @@ export type ProfileStackParamList = {
Profile: { user: UserType };
Followers: { users: UserType[] | undefined };
Following: { users: UserType[] | undefined };
FavSnaps: { snaps: Snap[] };
FavSnaps: { snaps: SnapType[] };
EditProfile: { user: UserType | undefined };
Chat: {
chat: Chat | undefined;
user: UserType;
};
Snap: { snap: SnapType };
Stadistics: undefined;
Verify: undefined;
};
Expand All @@ -37,6 +39,7 @@ export const ProfileNavigator = () => {
<Stack.Screen name="Following" component={InteractionsScreen} />
<Stack.Screen name="FavSnaps" component={FavoriteSnapScreen} />
<Stack.Screen name="EditProfile" component={SignInComplete} />
<Stack.Screen name="Snap" component={Snap} />
<Stack.Screen name="Chat" component={ChatScreen} />
<Stack.Screen name="Stadistics" component={StadisticsScreen} />
<Stack.Screen name="Verify" component={VerifyScreen} />
Expand Down
9 changes: 6 additions & 3 deletions src/screens/search/search-navigator.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import * as React from 'react';

import type { Snap } from '@/api';
import type { Snap as SnapType } from '@/api';
import type { UserType } from '@/core/auth/utils';
import { SignInComplete } from '@/navigation/signin-complete';
import { Snap } from '@/screens';

import type { Chat } from '../chat/chat-list-screen';
import ChatScreen from '../chat/chat-screen';
Expand All @@ -20,8 +21,9 @@ export type SearchStackParamList = {
Users: { users: UserType[] | undefined };
Followers: { users: UserType[] | undefined };
Following: { users: UserType[] | undefined };
SnapList: { snaps: Snap[] };
FavSnaps: { snaps: Snap[] };
SnapList: { snaps: SnapType[] };
Snap: { snap: SnapType };
FavSnaps: { snaps: SnapType[] };
EditProfile: { user: UserType | undefined };
Chat: {
chat: Chat | undefined;
Expand All @@ -40,6 +42,7 @@ export const SearchNavigator = () => {
<Stack.Screen name="Followers" component={InteractionsScreen} />
<Stack.Screen name="Following" component={InteractionsScreen} />
<Stack.Screen name="SnapList" component={SnapList} />
<Stack.Screen name="Snap" component={Snap} />
<Stack.Screen name="FavSnaps" component={FavoriteSnapScreen} />
<Stack.Screen name="EditProfile" component={SignInComplete} />
<Stack.Screen name="Chat" component={ChatScreen} />
Expand Down

0 comments on commit 72edbf8

Please sign in to comment.