frontend: rename insights => journey tab
Pedro Lucas Porcellis porcellis@eletrotupi.com · 5 months ago
9178180cdc205057166b109bc467d46e0cec37aa Browse filesParents
163ef8bChanged files
2
Additions
+4
Deletions
-3
frontend/app/(tabs)/_layout.tsx
1 1
import { Tabs, Redirect, router } from 'expo-router';
2 2
import React, { useEffect } from 'react';
3 3
import { View, ActivityIndicator } from 'react-native';
4 4
5 5
import { HapticTab } from '@/components/misc/haptic-tab';
48 48
/>
49 49
50 50
<Tabs.Screen
51 51
name="insights"
52 52
options={{
53 -
title: 'Insights',
54 -
tabBarIcon: ({ color }) => <IconSymbol size={28} name="lightbulb-outline" color={color} />,
53 +
title: 'Jornada',
54 +
tabBarIcon: ({ color }) => <IconSymbol size={28} name="book" color={color} />,
55 55
}}
56 56
/>
57 57
58 58
<Tabs.Screen
59 59
name="new"
79 79
}}
80 80
/>
81 81
</Tabs>
82 82
);
83 83
}
frontend/components/ui/icon-symbol.tsx
1 1
// Fallback for using MaterialIcons on Android and web.
2 2
3 3
import MaterialIcons from '@expo/vector-icons/MaterialIcons';
4 4
import { SymbolWeight, SymbolViewProps } from 'expo-symbols';
5 5
import { ComponentProps } from 'react';
24 24
'lightbulb-outline': 'lightbulb-outline',
25 25
'paperplane.fill': 'send',
26 26
'chevron.left.forwardslash.chevron.right': 'code',
27 27
'chevron.right': 'chevron-right',
28 28
'bolt': 'bolt',
29 -
'settings.fill': 'settings'
29 +
'settings.fill': 'settings',
30 +
'book': 'book'
30 31
} as IconMapping;
31 32
32 33
/**
33 34
* An icon component that uses native SF Symbols on iOS, and Material Icons on Android and web.
34 35
* This ensures a consistent look across platforms, and optimal resource usage.
46 47
style?: StyleProp<TextStyle>;
47 48
weight?: SymbolWeight;
48 49
}) {
49 50
return <MaterialIcons color={color} size={size} name={MAPPING[name]} style={style} />;
50 51
}