-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
724f006
commit da4a99f
Showing
18 changed files
with
1,384 additions
and
2,471 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,70 @@ | ||
import type { Href } from 'expo-router'; | ||
|
||
export const tvPath = (params: { id: number }): Href<string> => ({ | ||
export const tvPath = (params: { id: number }): Href => ({ | ||
pathname: '/tv/[id]', | ||
params | ||
}); | ||
|
||
export const tvImagesPath = (params: { | ||
id: number; | ||
type: 'posters' | 'backdrops'; | ||
}): Href<string> => ({ | ||
}): Href => ({ | ||
pathname: '/tv/[id]/images/[type]', | ||
params | ||
}); | ||
|
||
export const moviePath = (params: { id: number }): Href<string> => ({ | ||
export const moviePath = (params: { id: number }): Href => ({ | ||
pathname: '/movie/[id]', | ||
params | ||
}); | ||
|
||
export const movieImagesPath = (params: { | ||
id: number; | ||
type: 'posters' | 'backdrops'; | ||
}): Href<string> => ({ | ||
}): Href => ({ | ||
pathname: '/movie/[id]/images/[type]', | ||
params | ||
}); | ||
|
||
export const personPath = (params: { id: number }): Href<string> => ({ | ||
export const personPath = (params: { id: number }): Href => ({ | ||
pathname: '/person/[id]', | ||
params | ||
}); | ||
|
||
export const personMoviesPath = (params: { id: number }): Href<string> => ({ | ||
export const personMoviesPath = (params: { id: number }): Href => ({ | ||
pathname: '/person/[id]/movies', | ||
params | ||
}); | ||
|
||
export const personTvPath = (params: { id: number }): Href<string> => ({ | ||
export const personTvPath = (params: { id: number }): Href => ({ | ||
pathname: '/person/[id]/tv', | ||
params | ||
}); | ||
|
||
export const personImagePath = (params: { | ||
id: number; | ||
start: number; | ||
}): Href<string> => ({ | ||
}): Href => ({ | ||
pathname: '/person/[id]/images/[start]', | ||
params | ||
}); | ||
|
||
export const networkPath = (params: { id: number }): Href<string> => ({ | ||
export const networkPath = (params: { id: number }): Href => ({ | ||
pathname: '/network/[id]', | ||
params | ||
}); | ||
|
||
export const genreMoviePath = (params: { id: number }): Href<string> => ({ | ||
export const genreMoviePath = (params: { id: number }): Href => ({ | ||
pathname: '/genre/[id]/movie', | ||
params | ||
}); | ||
|
||
export const genreTvPath = (params: { id: number }): Href<string> => ({ | ||
export const genreTvPath = (params: { id: number }): Href => ({ | ||
pathname: '/genre/[id]/tv', | ||
params | ||
}); | ||
|
||
export const videoPath = (params: { id: string }): Href<string> => ({ | ||
export const videoPath = (params: { id: string }): Href => ({ | ||
pathname: '/video/[id]', | ||
params | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.