This commit is contained in:
Samandar Turgunboyev
2025-09-04 18:38:08 +05:00
parent 9d317290ef
commit f41451c6b8
98 changed files with 1717 additions and 2118 deletions

View File

@@ -1,12 +1,7 @@
import AppText from 'components/AppText';
import React, { useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
import {
Animated,
StyleSheet,
Text,
TouchableOpacity,
View,
} from 'react-native';
import { Animated, StyleSheet, TouchableOpacity, View } from 'react-native';
import CloseIcon from 'svg/Close';
import { NotificationsData } from '../lib/data';
@@ -58,7 +53,7 @@ const NotificationsModal = ({ visible, setVisible, selectedOrder }: Props) => {
]}
>
<View style={styles.header}>
<Text style={styles.title}>{selectedOrder.title}</Text>
<AppText style={styles.title}>{selectedOrder.title}</AppText>
<TouchableOpacity onPress={closeModal} style={styles.closeBtn}>
<CloseIcon width={15} height={15} color={'#000'} />
</TouchableOpacity>
@@ -66,9 +61,9 @@ const NotificationsModal = ({ visible, setVisible, selectedOrder }: Props) => {
<View style={styles.divider} />
<Text style={styles.sectionTitle}>{selectedOrder.message}</Text>
<AppText style={styles.sectionTitle}>{selectedOrder.message}</AppText>
<TouchableOpacity onPress={closeModal} style={styles.btn}>
<Text style={styles.btnText}>{t('Yopish')}</Text>
<AppText style={styles.btnText}>{t('Yopish')}</AppText>
</TouchableOpacity>
</Animated.View>
</View>
@@ -105,7 +100,7 @@ const styles = StyleSheet.create({
},
title: {
fontSize: 18,
fontWeight: '600',
fontFamily: 'GolosText-Bold',
},
closeBtn: {
padding: 5,
@@ -123,7 +118,7 @@ const styles = StyleSheet.create({
},
sectionTitle: {
fontSize: 16,
fontWeight: '600',
fontFamily: 'GolosText-Bold',
paddingHorizontal: 20,
marginBottom: 8,
},
@@ -159,11 +154,11 @@ const styles = StyleSheet.create({
},
totalLabel: {
fontSize: 16,
fontWeight: '600',
fontFamily: 'GolosText-Bold',
},
totalValue: {
fontSize: 16,
fontWeight: '600',
fontFamily: 'GolosText-Bold',
color: '#28A7E8',
},
btn: {
@@ -179,7 +174,7 @@ const styles = StyleSheet.create({
textAlign: 'center',
color: '#fff',
fontSize: 16,
fontWeight: '600',
fontFamily: 'GolosText-Bold',
},
});