Front: Lint + format
This commit is contained in:
committed by
Clément Le Bihan
parent
f4cd9e18ea
commit
004a541302
@@ -7,7 +7,7 @@ import PopupCC from './UI/PopupCC';
|
||||
|
||||
const APKDownloadButton = () => {
|
||||
const [isOpen, setIsOpen] = useState(false);
|
||||
//
|
||||
|
||||
return (
|
||||
<>
|
||||
<ButtonBase
|
||||
@@ -28,8 +28,10 @@ const APKDownloadButton = () => {
|
||||
icon={ArrowCircleDown2}
|
||||
type={'filled'}
|
||||
title={translate('downloadAPK')}
|
||||
onPress={() => Linking.openURL('https://github.com/Chroma-Case/Chromacase/releases')}
|
||||
/>
|
||||
onPress={() =>
|
||||
Linking.openURL('https://github.com/Chroma-Case/Chromacase/releases')
|
||||
}
|
||||
/>
|
||||
</PopupCC>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -165,7 +165,7 @@ const ScaffoldAuth: FunctionComponent<ScaffoldAuthProps> = ({
|
||||
<Text>{link.label}</Text>
|
||||
<LinkBase text={link.text} onPress={link.onPress} />
|
||||
</Wrap>
|
||||
{ Platform.OS === "web" && <APKDownloadButton/> }
|
||||
{Platform.OS === 'web' && <APKDownloadButton />}
|
||||
</Stack>
|
||||
</View>
|
||||
</ScrollView>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export const en = {
|
||||
error: 'Error',
|
||||
guestMode: "Guest Mode",
|
||||
downloadAPK: "Download Android App",
|
||||
guestMode: 'Guest Mode',
|
||||
downloadAPK: 'Download Android App',
|
||||
goBackHome: 'Go Back Home',
|
||||
anErrorOccured: 'An Error Occured',
|
||||
welcome: 'Welcome',
|
||||
@@ -317,13 +317,14 @@ 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\'.'
|
||||
downloadAPKInstructions:
|
||||
"Go to the latest release, unfold the 'Assets' section, and click 'android-build.apk'.",
|
||||
};
|
||||
|
||||
export const fr: typeof en = {
|
||||
error: 'Erreur',
|
||||
downloadAPK: "Télécharger l'App Android",
|
||||
guestMode: "Mode Invité",
|
||||
guestMode: 'Mode Invité',
|
||||
goBackHome: "Retourner à l'accueil",
|
||||
anErrorOccured: 'Une erreur est survenue',
|
||||
welcome: 'Bienvenue',
|
||||
@@ -639,13 +640,14 @@ 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.'
|
||||
downloadAPKInstructions:
|
||||
"Descargue 'android-build.apk' en la sección 'Assets' de la última versión.",
|
||||
};
|
||||
|
||||
export const sp: typeof en = {
|
||||
error: 'Error',
|
||||
downloadAPK: "Descarga la Aplicación de Android",
|
||||
guestMode: "Modo Invitado",
|
||||
downloadAPK: 'Descarga la Aplicación de Android',
|
||||
guestMode: 'Modo Invitado',
|
||||
anErrorOccured: 'ocurrió un error',
|
||||
goBackHome: 'regresar a casa',
|
||||
welcomeMessage: 'Benvenido',
|
||||
@@ -968,5 +970,6 @@ 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'
|
||||
downloadAPKInstructions:
|
||||
"Télécharger 'android-build.apk' dans la section 'Assets' de la dernière release",
|
||||
};
|
||||
|
||||
@@ -163,7 +163,7 @@ const ProfileSettings = () => {
|
||||
},
|
||||
]}
|
||||
/>
|
||||
{ Platform.OS === "web" && <APKDownloadButton/> }
|
||||
{Platform.OS === 'web' && <APKDownloadButton />}
|
||||
<LogoutButtonCC isGuest={user.isGuest} buttonType={'filled'} />
|
||||
</Column>
|
||||
</ScrollView>
|
||||
|
||||
Reference in New Issue
Block a user