Enhance app functionality and localization
- Added new dependencies: expo-file-system and expo-sharing. - Updated package versions for @babel/core and react-dom. - Introduced a new index screen for displaying prayer times with city selection. - Refactored ServicesGrid to accept a dynamic services array and improved layout. - Updated localization for new phrases and service titles in Turkmen. - Enhanced LostKeyModal with a close button and additional text. - Improved PhrasebookModal to allow expandable phrases for better user interaction.
This commit is contained in:
@@ -7,14 +7,12 @@ import React, { useState } from 'react';
|
||||
import CurrencyConverterModal from '@/components/CurrencyConverterModal';
|
||||
import HotelBusinessCardModal from '@/components/HotelBusinessCardModal';
|
||||
import LostKeyModal from '@/components/LostKeyModal';
|
||||
import TranslatorModal from '@/components/TranslatorModal';
|
||||
import PhrasebookModal from '@/components/PhrasebookModal';
|
||||
|
||||
export default function ServicesScreen() {
|
||||
const [currencyModalVisible, setCurrencyModalVisible] = useState(false);
|
||||
const [hotelModalVisible, setHotelModalVisible] = useState(false);
|
||||
const [lostKeyModalVisible, setLostKeyModalVisible] = useState(false);
|
||||
const [translatorModalVisible, setTranslatorModalVisible] = useState(false);
|
||||
const [phrasebookModalVisible, setPhrasebookModalVisible] = useState(false);
|
||||
|
||||
const services = [
|
||||
@@ -36,12 +34,6 @@ export default function ServicesScreen() {
|
||||
icon: <FontAwesome5 name="key" size={24} color="#D4AF37" />,
|
||||
onPress: () => setLostKeyModalVisible(true),
|
||||
},
|
||||
{
|
||||
title: i18n.t('Translator'),
|
||||
name: 'translator',
|
||||
icon: <FontAwesome5 name="language" size={24} color="#D4AF37" />,
|
||||
onPress: () => setTranslatorModalVisible(true),
|
||||
},
|
||||
{
|
||||
title: i18n.t('Phrasebook'),
|
||||
name: 'phrasebook',
|
||||
@@ -73,10 +65,6 @@ export default function ServicesScreen() {
|
||||
visible={lostKeyModalVisible}
|
||||
onClose={() => setLostKeyModalVisible(false)}
|
||||
/>
|
||||
<TranslatorModal
|
||||
visible={translatorModalVisible}
|
||||
onClose={() => setTranslatorModalVisible(false)}
|
||||
/>
|
||||
<PhrasebookModal
|
||||
visible={phrasebookModalVisible}
|
||||
onClose={() => setPhrasebookModalVisible(false)}
|
||||
|
||||
Reference in New Issue
Block a user