Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beasy-mobile
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
G
beasy-mobile
Commits
8168718c
You need to sign in or sign up before continuing.
Commit
8168718c
authored
Jun 13, 2024
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not remember what i was trying to do here.
parent
9eefe230
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
33 deletions
+48
-33
HomeUserNotLoggedIn.tsx
src/screens/HomeUserNotLoggedIn.tsx
+48
-33
No files found.
src/screens/HomeUserNotLoggedIn.tsx
View file @
8168718c
import
{
useModalsManagerContext
}
from
"@/contexts/ModalsManagerContext"
;
import
{
useUserAuthenticationContext
}
from
"@/contexts/UserAuthenticationContext"
;
import
{
useUserAuthenticationContext
}
from
"@/contexts/UserAuthenticationContext"
;
import
type
{
MainStackScreenComponentProps
}
from
"@/navigations/Types"
;
import
type
{
MainStackScreenComponentProps
}
from
"@/navigations/Types"
;
import
Button
from
"@components/Button"
;
import
Button
from
"@components/Button"
;
...
@@ -9,47 +10,61 @@ const HomeUserNotLoggedIn: MainStackScreenComponentProps<"homeUserNotLoggedIn">
...
@@ -9,47 +10,61 @@ const HomeUserNotLoggedIn: MainStackScreenComponentProps<"homeUserNotLoggedIn">
navigation
,
navigation
,
})
=>
{
})
=>
{
const
{
isAuthenticated
}
=
useUserAuthenticationContext
();
const
{
isAuthenticated
}
=
useUserAuthenticationContext
();
const
{
showModal
,
closeModal
}
=
useModalsManagerContext
();
if
(
isAuthenticated
)
{
if
(
isAuthenticated
)
{
navigation
.
replace
(
"appBottomTabsNavigator"
);
navigation
.
replace
(
"appBottomTabsNavigator"
);
}
}
return
(
return
(
<
Box
style=
{
style
.
container
}
p=
{
"xl"
}
backgroundColor=
{
"white"
}
>
<>
<
Box
mt=
{
"s"
}
>
{
/* <LoadingModal /> */
}
<
Box
height=
{
300
}
<
Box
style=
{
style
.
container
}
p=
{
"xl"
}
backgroundColor=
{
"white"
}
>
width=
{
300
}
<
Box
mt=
{
"s"
}
>
backgroundColor=
{
"primary"
}
<
Box
mb=
{
"l"
}
height=
{
300
}
alignItems=
{
"center"
}
width=
{
300
}
justifyContent=
{
"center"
}
backgroundColor=
{
"primary"
}
>
mb=
{
"l"
}
<
Image
alignItems=
{
"center"
}
source=
{
require
(
"../../assets/payment_processing.png"
)
}
justifyContent=
{
"center"
}
style=
{
style
.
image
}
>
/>
<
Image
</
Box
>
source=
{
require
(
"../../assets/payment_processing.png"
)
}
<
Text
color=
{
"gray"
}
fontSize=
{
16
}
textAlign=
{
"center"
}
>
style=
{
style
.
image
}
Acceptez des paiements en magasin et en ligne et recevez votre argent en
/>
quelques secondes
</
Box
>
</
Text
>
<
Text
color=
{
"gray"
}
fontSize=
{
16
}
textAlign=
{
"center"
}
>
<
Box
mt=
{
"xl"
}
>
Acceptez des paiements en magasin et en ligne et recevez votre argent en
<
Button
quelques secondes
variant=
{
"full"
}
</
Text
>
textVariants=
{
"primary"
}
<
Box
mt=
{
"xl"
}
>
label=
"Se connecter"
<
Button
onPress=
{
()
=>
navigation
.
navigate
(
"userLoginScreen"
)
}
variant=
{
"full"
}
/>
textVariants=
{
"primary"
}
<
Button
label=
"Se connecter"
variant=
{
"clean"
}
onPress=
{
()
=>
navigation
.
navigate
(
"userLoginScreen"
)
}
textVariants=
{
"secondary"
}
// onPress={() =>
label=
"Creer un compte"
// showModal(
onPress=
{
()
=>
{}
}
// <InformationModal
/>
// onPress={closeModal}
// actionLabel="Se connecter"
// // message="L'oiseau sur le baobab ne doit pas oublier qu'il à porter des lunettes"
// />,
// )
// }
/>
<
Button
variant=
{
"clean"
}
textVariants=
{
"secondary"
}
label=
"Creer un compte"
onPress=
{
()
=>
{}
}
/>
</
Box
>
</
Box
>
</
Box
>
</
Box
>
</
Box
>
</
Box
>
</>
);
);
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment