diff --git a/src/assets/images/leader-pana.png b/src/assets/images/leader-pana.png new file mode 100644 index 0000000..43a1fea Binary files /dev/null and b/src/assets/images/leader-pana.png differ diff --git a/src/components/Modal/ModalSuccess/index.js b/src/components/Modal/ModalSuccess/index.js new file mode 100644 index 0000000..d5f4152 --- /dev/null +++ b/src/components/Modal/ModalSuccess/index.js @@ -0,0 +1,33 @@ +/* eslint-disable react-hooks/exhaustive-deps */ +import React, {useRef, useEffect, useState} from 'react'; +import {View, Text, Image, TouchableOpacity} from 'react-native'; +import Modal from 'react-native-modal'; +import {Icon} from 'components'; +import {Colors} from 'global-styles'; +import {useTranslation} from 'react-i18next'; +import styles from './styles'; + +const ModalSuccess = props => { + const {t} = useTranslation(); + const {isVisible, onClose, message} = props; + + return ( + + + + + + + + {t('success_text')} + {message} + + + + ); +}; + +export default ModalSuccess; diff --git a/src/components/Modal/ModalSuccess/styles.js b/src/components/Modal/ModalSuccess/styles.js new file mode 100644 index 0000000..dae2443 --- /dev/null +++ b/src/components/Modal/ModalSuccess/styles.js @@ -0,0 +1,55 @@ +import {StyleSheet, Dimensions, Platform} from 'react-native'; +import {RFValue} from 'react-native-responsive-fontsize'; +import {Colors, FONTS} from 'global-styles'; +const {width} = Dimensions.get('window'); + +export default StyleSheet.create({ + modal: { + margin: 0, + }, + container: { + flex: 1, + margin: 0, + justifyContent: 'flex-end', + }, + content: { + height: width / 1.4, + backgroundColor: Colors.WHITE, + paddingVertical: width * 0.04, + paddingHorizontal: width * 0.05, + borderTopLeftRadius: width * 0.05, + borderTopRightRadius: width * 0.05, + alignItems: 'center', + }, + buttonClose: { + backgroundColor: Colors.WHITE, + width: width * 0.09, + height: width * 0.09, + borderRadius: width, + marginBottom: width * 0.03, + alignSelf: 'flex-end', + marginRight: width * 0.03, + alignItems: 'center', + justifyContent: 'center', + }, + buttonCloseIcon: { + fontSize: RFValue(20), + color: Colors.TEXT, + }, + errorImage: { + width: width * 0.3, + height: width * 0.3, + }, + title: { + fontFamily: FONTS.poppins[600], + fontSize: RFValue(18), + color: Colors.TEXT, + marginTop: width * 0.02, + }, + message: { + fontFamily: FONTS.poppins[400], + fontSize: RFValue(12), + color: Colors.TEXT, + marginTop: width * 0.04, + }, +}); diff --git a/src/components/Modal/ModalTermsAndConditions/index.js b/src/components/Modal/ModalTermsAndConditions/index.js new file mode 100644 index 0000000..c7e563a --- /dev/null +++ b/src/components/Modal/ModalTermsAndConditions/index.js @@ -0,0 +1,57 @@ +/* eslint-disable react-hooks/exhaustive-deps */ +import React, {useRef, useEffect, useState} from 'react'; +import { + View, + Text, + Image, + TouchableOpacity, + Dimensions, + ScrollView, +} from 'react-native'; +import Modal from 'react-native-modal'; +import {Icon, Button} from 'components'; +import {Colors} from 'global-styles'; +import {useTranslation} from 'react-i18next'; +import styles from './styles'; +const {width, height} = Dimensions.get('window'); + +const ModalTermsAndConditions = props => { + const {t} = useTranslation(); + const {isVisible, onClose, message} = props; + + return ( + + + + + + + + + {t('term_and_condition_text')} + + + + + {t('term_and_condition_note')} + +