diff --git a/front/components/APKDownloadButton.tsx b/front/components/APKDownloadButton.tsx index 88308c8..2ddf1df 100644 --- a/front/components/APKDownloadButton.tsx +++ b/front/components/APKDownloadButton.tsx @@ -2,18 +2,36 @@ import { ArrowCircleDown2 } from 'iconsax-react-native'; import ButtonBase from './UI/ButtonBase'; import { translate } from '../i18n/i18n'; import { Linking } from 'react-native'; +import { useState } from 'react'; +import PopupCC from './UI/PopupCC'; const APKDownloadButton = () => { + const [isOpen, setIsOpen] = useState(false); + // return ( - - Linking.openURL('https://github.com/Chroma-Case/Chromacase/releases/download/v0.8.4/android-build.apk') - } - /> + <> + setIsOpen(true)} + /> + + Linking.openURL('https://github.com/Chroma-Case/Chromacase/releases')} + /> + + ); }; diff --git a/front/i18n/Translations.ts b/front/i18n/Translations.ts index a9f8275..c04b51d 100644 --- a/front/i18n/Translations.ts +++ b/front/i18n/Translations.ts @@ -317,6 +317,7 @@ export const en = { forgotPassword: 'I forgot my password', updateProfile: 'Update Profile', accountCreatedOn: 'Account Created on', + downloadAPKInstructions: 'Go to the latest release, unfold the \'Assets\' section, and click \'android-build.apk\'.' }; export const fr: typeof en = { @@ -638,6 +639,7 @@ export const fr: typeof en = { forgotPassword: "J'ai oublié mon mot de passe", updateProfile: 'Changer le Profile', accountCreatedOn: 'Compte créé le', + downloadAPKInstructions: 'Descargue \'android-build.apk\' en la sección \'Assets\' de la última versión.' }; export const sp: typeof en = { @@ -966,4 +968,5 @@ export const sp: typeof en = { forgotPassword: 'Olvidé mi contraseña', updateProfile: 'Cambiar el perfil', accountCreatedOn: 'Cuenta creada el', + downloadAPKInstructions: 'Télécharger \'android-build.apk\' dans la section \'Assets\' de la dernière release' };