fixed style layout in GuestToUserView and added SignOutGuestWarning translations
This commit is contained in:
@@ -146,7 +146,8 @@ export const en = {
|
|||||||
yes: 'Yes',
|
yes: 'Yes',
|
||||||
no: 'No',
|
no: 'No',
|
||||||
|
|
||||||
|
Attention: 'Attention',
|
||||||
|
YouAreCurrentlyConnectedWithAGuestAccountWarning: "You are currently connected with a guest account. Disconneting will result in your data being lost. If you want to save your progress, you need to create an account.",
|
||||||
};
|
};
|
||||||
|
|
||||||
export const fr: typeof en = {
|
export const fr: typeof en = {
|
||||||
@@ -293,6 +294,8 @@ export const fr: typeof en = {
|
|||||||
yes: 'Oui',
|
yes: 'Oui',
|
||||||
no: 'Non',
|
no: 'Non',
|
||||||
|
|
||||||
|
Attention: 'Attention',
|
||||||
|
YouAreCurrentlyConnectedWithAGuestAccountWarning: 'Vous êtes actuellement connecté en tant qu\'invité. La déconnexion résultera en une perte de données. Vous pouvez créer un compte pour sauvegarder vos données.',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const sp: typeof en = {
|
export const sp: typeof en = {
|
||||||
@@ -442,4 +445,7 @@ export const sp: typeof en = {
|
|||||||
premiumAccount: 'Cuenta premium',
|
premiumAccount: 'Cuenta premium',
|
||||||
yes: 'Sí',
|
yes: 'Sí',
|
||||||
no: 'No',
|
no: 'No',
|
||||||
|
|
||||||
|
Attention: 'Atención',
|
||||||
|
YouAreCurrentlyConnectedWithAGuestAccountWarning: 'Actualmente estás conectado como invitado. La desconexión resultará en la pérdida de datos. Puedes crear una cuenta para guardar tus datos.',
|
||||||
};
|
};
|
||||||
@@ -22,15 +22,17 @@ const handleSubmit = async (
|
|||||||
const GuestToUserView = () => {
|
const GuestToUserView = () => {
|
||||||
return (
|
return (
|
||||||
<Center flex={1} justifyContent={"center"}>
|
<Center flex={1} justifyContent={"center"}>
|
||||||
<Heading>{translate("signUp")}</Heading>
|
<Center width="90%" justifyContent={"center"}>
|
||||||
<Text mt={5} mb={10}>
|
<Heading>{translate("signUp")}</Heading>
|
||||||
{translate("transformGuestToUserExplanations")}
|
<Text mt={5} mb={10}>
|
||||||
</Text>
|
{translate("transformGuestToUserExplanations")}
|
||||||
<SignUpForm
|
</Text>
|
||||||
onSubmit={(username, password, email) =>
|
<SignUpForm
|
||||||
handleSubmit(username, password, email)
|
onSubmit={(username, password, email) =>
|
||||||
}
|
handleSubmit(username, password, email)
|
||||||
/>
|
}
|
||||||
|
/>
|
||||||
|
</Center>
|
||||||
</Center>
|
</Center>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -125,8 +125,7 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => {
|
|||||||
{
|
{
|
||||||
type: "text",
|
type: "text",
|
||||||
title: "XP",
|
title: "XP",
|
||||||
description:
|
description: translate("XPDescription"),
|
||||||
translate("XPDescription"),
|
|
||||||
data: {
|
data: {
|
||||||
text: user.data.xp,
|
text: user.data.xp,
|
||||||
},
|
},
|
||||||
@@ -146,7 +145,7 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => {
|
|||||||
data: {
|
data: {
|
||||||
text: translate(user.premium ? "yes" : "no"),
|
text: translate(user.premium ? "yes" : "no"),
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
<Heading fontSize="20" mt="7">
|
<Heading fontSize="20" mt="7">
|
||||||
@@ -162,8 +161,10 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => {
|
|||||||
{
|
{
|
||||||
type: "toggle",
|
type: "toggle",
|
||||||
title: "Piano Magique",
|
title: "Piano Magique",
|
||||||
description: "Fait apparaître de la lumière sur le piano pendant les parties",
|
description:
|
||||||
helperText: "Vous devez posséder le module physique lumineux Chromacase pour pouvoir utiliser cette fonctionnalité",
|
"Fait apparaître de la lumière sur le piano pendant les parties",
|
||||||
|
helperText:
|
||||||
|
"Vous devez posséder le module physique lumineux Chromacase pour pouvoir utiliser cette fonctionnalité",
|
||||||
disabled: true,
|
disabled: true,
|
||||||
data: {
|
data: {
|
||||||
value: false,
|
value: false,
|
||||||
@@ -212,22 +213,19 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => {
|
|||||||
<Popover.Arrow />
|
<Popover.Arrow />
|
||||||
<Popover.Body>
|
<Popover.Body>
|
||||||
<Heading size="md" mb={2}>
|
<Heading size="md" mb={2}>
|
||||||
Attention
|
{translate("Attention")}
|
||||||
</Heading>
|
</Heading>
|
||||||
<Text>
|
<Text>
|
||||||
Vous êtes connecté avec un compte invité temporaire, si vous
|
{translate(
|
||||||
vous déconnectez, vous perdrez vos données.
|
"YouAreCurrentlyConnectedWithAGuestAccountWarning"
|
||||||
</Text>
|
)}
|
||||||
<Text>
|
|
||||||
Vous pouvez sauvegarder votre progression en transférant votre
|
|
||||||
compte invité vers un compte classique.
|
|
||||||
</Text>
|
</Text>
|
||||||
<Button.Group variant="ghost" space={2}>
|
<Button.Group variant="ghost" space={2}>
|
||||||
<Button
|
<Button
|
||||||
onPress={() => dispatch(unsetAccessToken())}
|
onPress={() => dispatch(unsetAccessToken())}
|
||||||
colorScheme="red"
|
colorScheme="red"
|
||||||
>
|
>
|
||||||
Déconnexion
|
{translate("signOutBtn")}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
@@ -235,7 +233,7 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => {
|
|||||||
}}
|
}}
|
||||||
colorScheme="green"
|
colorScheme="green"
|
||||||
>
|
>
|
||||||
Créer un compte
|
{translate("signUpBtn")}
|
||||||
</Button>
|
</Button>
|
||||||
</Button.Group>
|
</Button.Group>
|
||||||
</Popover.Body>
|
</Popover.Body>
|
||||||
|
|||||||
Reference in New Issue
Block a user