feat(TabsLayout): add schedule tab with calendar icon
All checks were successful
Frontend CI / build-and-push-web (push) Successful in 3m1s
Frontend CI / ota-android (push) Successful in 11m8s
Frontend CI / build-android-apk (push) Successful in 1h16m26s

- Introduced a new "schedule" tab in the TabsLayout component, enhancing navigation options for users.
- Configured the tab with a title and a calendar icon for improved visual representation.
- Removed the previous implementation of the schedule tab to streamline the codebase.
This commit is contained in:
lafay
2026-03-24 23:08:17 +08:00
parent 9e41871b91
commit c12b98e293

View File

@@ -61,6 +61,15 @@ export default function TabsLayout() {
),
}}
/>
<Tabs.Screen
name="schedule"
options={{
title: '课表',
tabBarIcon: ({ color, focused }) => (
<MaterialCommunityIcons name="calendar-today" size={focused ? 24 : 22} color={color} />
),
}}
/>
<Tabs.Screen
name="messages"
options={{
@@ -75,15 +84,6 @@ export default function TabsLayout() {
),
}}
/>
<Tabs.Screen
name="schedule"
options={{
title: '课表',
tabBarIcon: ({ color, focused }) => (
<MaterialCommunityIcons name="calendar-today" size={focused ? 24 : 22} color={color} />
),
}}
/>
<Tabs.Screen
name="profile"
options={{