diff --git a/backend/src/auth/user/authUserservice.ts b/backend/src/auth/user/authUserservice.ts index 511ff34d76dfd09a0b0382c1ad14a4132bd75270..7f53e41bd5fce688f1f9414227988207f8192e8e 100644 --- a/backend/src/auth/user/authUserservice.ts +++ b/backend/src/auth/user/authUserservice.ts @@ -83,6 +83,7 @@ export class AuthUserService { } async getResetPasswordCode(email: string) { + console.log(`Email: ${email}`); const user: User = await this.userService.findOne(email); if (!user) throw new UnauthorizedException('Invalid email'); const resetCode = randomInt(100000, 999999).toString(); diff --git a/backend/src/route/index.html b/backend/src/route/index.html new file mode 100644 index 0000000000000000000000000000000000000000..35d7bb58d66fbaff3dcb70625e32208d72c53108 --- /dev/null +++ b/backend/src/route/index.html @@ -0,0 +1,52 @@ + + + + + + Document + + + +
+
+

+ +

+
+
+
+
+
+
+
+ +
+
+ + \ No newline at end of file diff --git a/mobile/app/_layout.tsx b/mobile/app/_layout.tsx index 3c94ed45c8dd6105d75b9164fa206559ebadb109..126debba14d27f32722810a88d1c631a2a318160 100644 --- a/mobile/app/_layout.tsx +++ b/mobile/app/_layout.tsx @@ -95,6 +95,21 @@ const MainLayout = () => { statusBarColor: LIGHT_THEME.color.primary, }} /> + ); +} \ No newline at end of file diff --git a/mobile/src/common/const/api.ts b/mobile/src/common/const/api.ts index c4d4fe8de65867d6440c49e432cba14106ae2b99..24838169976313038bb4882ce32bdc88e509e832 100644 --- a/mobile/src/common/const/api.ts +++ b/mobile/src/common/const/api.ts @@ -1 +1 @@ -export const API_URL = 'http://192.168.0.14:3005'; \ No newline at end of file +export const API_URL = 'https://c749-200-92-164-74.ngrok-free.app'; \ No newline at end of file diff --git a/mobile/src/profile/screens/about_us_page.tsx b/mobile/src/profile/screens/about_us_page.tsx new file mode 100644 index 0000000000000000000000000000000000000000..c13e342f9bffcb48b67364870112bc2cae38b427 --- /dev/null +++ b/mobile/src/profile/screens/about_us_page.tsx @@ -0,0 +1,57 @@ +import { View, Text, StyleSheet } from "react-native"; +import { LIGHT_THEME } from "../../common/const/theme"; +import { FontAwesome } from "@expo/vector-icons"; + +export const AboutUsPage = () => { + return ( + + Equipo de desarrollo + + + + + + + ); +}; + +interface ItemTeam { + name: string; + role: string; +} + +const ItemTeamList = ({name, role}: ItemTeam) => { + return ( + + + {name} + + {role} + + ); +}; + +const styles = StyleSheet.create({ + container: { + flex: 1, + width: "100%", + padding: 20, + backgroundColor: LIGHT_THEME.color.background, + }, + itemTeam: { + width: "100%", + flexDirection: "row", + backgroundColor: "red", + gap: 10, + alignItems: "center", + height: 30, + }, + nameTeam: { + fontSize: 18, + }, + roleTeamText: { + fontSize: 18, + fontWeight: "bold", + + } +}); \ No newline at end of file diff --git a/mobile/src/profile/screens/account_page.tsx b/mobile/src/profile/screens/account_page.tsx index f4878cedc1867ba5681b21ae3b58070a6c3b71cf..670f936a4405f83318ded4e86da4c033854e594c 100644 --- a/mobile/src/profile/screens/account_page.tsx +++ b/mobile/src/profile/screens/account_page.tsx @@ -1,11 +1,4 @@ -import { - View, - Text, - Button, - StyleSheet, - Touchable, - TouchableOpacity, -} from "react-native"; +import { View, Text, StyleSheet, TouchableOpacity } from "react-native"; import { useAuth } from "../../auth/contexts/auth_context"; import { CircleAvatar } from "../../common/components/circle_avatar"; import { @@ -20,9 +13,9 @@ import { useRef, useState } from "react"; import Modal from "react-native-modal"; import { set } from "react-hook-form"; import { AntDesign } from "@expo/vector-icons"; -import RNPickerSelect from 'react-native-picker-select'; +import RNPickerSelect from "react-native-picker-select"; import { AvailableLanguages, Languages } from "../../lang/translations"; -import i18n from 'i18next'; +import i18n from "i18next"; import { useTranslation } from "react-i18next"; import { useLang } from "../../lang/hooks/useLang"; @@ -73,11 +66,22 @@ export const AccountPage = () => { onClose={() => setModalVisible(false)} /> } onPress={() => router.push("/profile/interests")} /> + router.push("/about_us")} + leadingIcon={ + + } + /> { const { changeLanguage } = useLang(); - const [selectedLanguage, setSelectedLanguage] = useState(null); + const [selectedLanguage, setSelectedLanguage] = useState( + null + ); const onSave = () => { changeLanguage(selectedLanguage || Languages.SPANISH); onClose(); - } + }; return ( @@ -115,16 +121,15 @@ const ChangeLanguageModal = ({ /> Select Language setSelectedLanguage(value)} - items={AvailableLanguages.map((lang) => ({ - label: lang.value, - value: lang.key, - })) - } - /> - - Save - + onValueChange={(value) => setSelectedLanguage(value)} + items={AvailableLanguages.map((lang) => ({ + label: lang.value, + value: lang.key, + }))} + /> + + Save + ); @@ -165,7 +170,7 @@ const modalStyles = StyleSheet.create({ saveBtnText: { color: "white", fontWeight: "bold", - } + }, }); const styles = StyleSheet.create({