|
1 | 1 | import React, { useEffect, useState } from 'react'; |
2 | | -import { View, Text, StyleSheet, Pressable } from 'react-native'; |
| 2 | +import { Pressable, StyleSheet, Text, View } from 'react-native'; |
3 | 3 |
|
4 | | -import Sidebar from '../../assets/icons/sidebar-simple.svg'; |
5 | | -import Star from '../../assets/icons/star.svg'; |
6 | | -import StarFill from '../../assets/icons/star-fill.svg'; |
| 4 | +import { getFavoritesForUser, toggleFavorite } from '@/api/auth'; |
| 5 | +import { supabase } from '@/api/dashboardInfo'; |
7 | 6 | import { useDarkMode } from '@/context/DarkModeContext'; |
8 | 7 | import { usePathname } from 'expo-router'; |
9 | | -import { supabase } from '@/api/dashboardInfo'; |
10 | | -import { getFavoritesForUser, toggleFavorite } from '@/api/auth'; |
| 8 | +import Sidebar from '../../assets/icons/sidebar-simple.svg'; |
| 9 | +import StarFill from '../../assets/icons/star-fill.svg'; |
| 10 | +import Star from '../../assets/icons/star.svg'; |
11 | 11 |
|
12 | 12 | type LeftSideProps = { |
13 | 13 | toggleSidebar: () => void; |
@@ -98,7 +98,7 @@ const LeftSide = ({ toggleSidebar, pageTitle, showRoute }: LeftSideProps) => { |
98 | 98 | } else if (pageTitle === 'ScoutSheet') { |
99 | 99 | routeLabel = 'Scouting'; |
100 | 100 | } else if ( |
101 | | - ['Teams', 'Auto', 'TeleOp', 'Endgame', 'Matches', 'Qualifiers', 'Finals', 'Premier'].includes(pageTitle) |
| 101 | + ['Teams', 'Auto', 'TeleOp', 'Endgame', 'Matches', 'Qualifiers', 'Finals', 'Premier', 'All Events', 'Championship'].includes(pageTitle) |
102 | 102 | ) { |
103 | 103 | routeLabel = 'Analytics'; |
104 | 104 | } |
|
0 commit comments