Front: Navigation: Route Props include route info

This commit is contained in:
Arthur Jamet
2023-04-16 16:01:12 +01:00
committed by Clément Le Bihan
parent 6871aaf759
commit deaaaac2cd
5 changed files with 25 additions and 20 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ if (process.env.NODE_ENV != 'development' && Platform.OS === 'web') {
}
}
const PlayView = ({ songId }: PlayViewProps) => {
const PlayView = ({ songId }: RouteProps<PlayViewProps>) => {
const navigation = useNavigation();
const queryClient = useQueryClient();
const song = useQuery(['song', songId], () => API.getSong(songId));