you miss 100% of the shots you dont take

This commit is contained in:
danis
2023-07-09 23:24:31 +02:00
parent 28716eeab2
commit 3a09d10d3b
4 changed files with 251 additions and 23 deletions

View File

@@ -28,6 +28,7 @@ import { Button, Center, VStack } from 'native-base';
import { unsetAccessToken } from './state/UserSlice';
import TextButton from './components/TextButton';
import ErrorView from './views/ErrorView';
import GenreDetailsView from './views/GenreDetailsView';
// Util function to hide route props in URL
const removeMe = () => '';
@@ -58,6 +59,11 @@ const protectedRoutes = () =>
options: { title: translate('artistFilter') },
link: '/artist/:artistId',
},
Genre: {
component: GenreDetailsView,
options: { title: translate('genreFilter')},
link: '/genre/:genreId',
},
Score: {
component: ScoreView,
options: { title: translate('score'), headerLeft: null },