From 93f0696ad20ddede967f5a5d89d8a2eab31d295b Mon Sep 17 00:00:00 2001 From: Vinicius Souza Date: Fri, 1 Nov 2024 13:05:06 -0300 Subject: [PATCH] feat: change params on exercise screen, also reformat code --- src/routes/app.routes.tsx | 61 ++++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 29 deletions(-) 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 }} /> - ) + ); }