Refactor TabIndex to use fixed dark mode and comment out hotel service in ServicesScreen
- Set color scheme in TabIndex to a fixed 'dark' value for consistent theming. - Commented out the hotel service option in ServicesScreen for potential future redesign.
This commit is contained in:
@@ -4,7 +4,6 @@ import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|||||||
|
|
||||||
import { getPrayerTimes, cities } from '../../utils/prayerTimeCalculator';
|
import { getPrayerTimes, cities } from '../../utils/prayerTimeCalculator';
|
||||||
import i18n from '../../i18n';
|
import i18n from '../../i18n';
|
||||||
import { useColorScheme } from 'react-native';
|
|
||||||
import Colors from '../../constants/Colors';
|
import Colors from '../../constants/Colors';
|
||||||
|
|
||||||
type Prayer = {
|
type Prayer = {
|
||||||
@@ -15,7 +14,7 @@ type Prayer = {
|
|||||||
type City = keyof typeof cities;
|
type City = keyof typeof cities;
|
||||||
|
|
||||||
export default function TabIndex() {
|
export default function TabIndex() {
|
||||||
const colorScheme = useColorScheme();
|
const colorScheme = 'dark';
|
||||||
const theme = Colors[colorScheme ?? 'light'];
|
const theme = Colors[colorScheme ?? 'light'];
|
||||||
const [selectedCity, setSelectedCity] = useState<City>('Makkah');
|
const [selectedCity, setSelectedCity] = useState<City>('Makkah');
|
||||||
const [prayerTimes, setPrayerTimes] = useState<Prayer[]>([]);
|
const [prayerTimes, setPrayerTimes] = useState<Prayer[]>([]);
|
||||||
|
|||||||
@@ -24,12 +24,12 @@ export default function ServicesScreen() {
|
|||||||
icon: <FontAwesome5 name="dollar-sign" size={24} color="#D4AF37" />,
|
icon: <FontAwesome5 name="dollar-sign" size={24} color="#D4AF37" />,
|
||||||
onPress: () => setCurrencyModalVisible(true),
|
onPress: () => setCurrencyModalVisible(true),
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: i18n.t('Hotel'),
|
// title: i18n.t('Hotel'),
|
||||||
name: 'hotelCard',
|
// name: 'hotelCard',
|
||||||
icon: <FontAwesome5 name="hotel" size={24} color="#D4AF37" />,
|
// icon: <FontAwesome5 name="hotel" size={24} color="#D4AF37" />,
|
||||||
onPress: () => setHotelModalVisible(true),
|
// onPress: () => setHotelModalVisible(true),
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: i18n.t('Lost room key'),
|
title: i18n.t('Lost room key'),
|
||||||
name: 'lostKey',
|
name: 'lostKey',
|
||||||
|
|||||||
Reference in New Issue
Block a user