diff --git a/src/routes/app.routes.tsx b/src/routes/app.routes.tsx index 402ffd5..9066eb0 100644 --- a/src/routes/app.routes.tsx +++ b/src/routes/app.routes.tsx @@ -13,39 +13,42 @@ import { gluestackUIConfig } from '../../config/gluestack-ui.config'; import { Platform } from 'react-native'; type AppRoutes = { - Home: undefined, - Exercise: undefined, - History: undefined, - Profile: undefined, -} + Home: undefined; + Exercise: { exerciseId: string }; + History: undefined; + Profile: undefined; +}; export type AppNavigatorRoutesProps = BottomTabNavigationProp; const { Navigator, Screen } = createBottomTabNavigator(); export function AppRoutes() { - const { tokens: { space, colors } } = gluestackUIConfig; + const { + tokens: { space, colors }, + } = gluestackUIConfig; const iconSize = space['6']; return ( - + + tabBarIcon: ({ color }) => , }} /> @@ -53,23 +56,23 @@ export function AppRoutes() { name="History" component={History} options={{ - tabBarIcon: ({ color }) => - }} + tabBarIcon: ({ color }) => ( + + ), + }} /> + tabBarIcon: ({ color }) => ( + + ), }} /> - null }} - /> + null }} /> - ) + ); }