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
6869818a
Commit
6869818a
authored
May 24, 2024
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update navigator type
parent
5a2bb994
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
HomeUserNotLoggedIn.tsx
src/screens/HomeUserNotLoggedIn.tsx
+3
-2
UserLoginScreen.tsx
src/screens/UserLoginScreen.tsx
+2
-4
No files found.
src/screens/HomeUserNotLoggedIn.tsx
View file @
6869818a
import
{
useUserAuthenticationContext
}
from
"@/contexts/UserAuthenticationContext"
;
import
{
useUserAuthenticationContext
}
from
"@/contexts/UserAuthenticationContext"
;
import
type
{
UnloggedUser
StackScreenComponentProps
}
from
"@/navigations/Types"
;
import
type
{
Main
StackScreenComponentProps
}
from
"@/navigations/Types"
;
import
Button
from
"@components/Button"
;
import
Button
from
"@components/Button"
;
import
Box
from
"@components/bases/Box"
;
import
Box
from
"@components/bases/Box"
;
import
Text
from
"@components/bases/Text"
;
import
Text
from
"@components/bases/Text"
;
import
{
Image
,
StyleSheet
}
from
"react-native"
;
import
{
Image
,
StyleSheet
}
from
"react-native"
;
const
HomeUserNotLoggedIn
:
UnloggedUserStackScreenComponentProps
<
"homeUserNotLoggedIn"
>
=
({
const
HomeUserNotLoggedIn
:
MainStackScreenComponentProps
<
"homeUserNotLoggedIn"
>
=
({
navigation
,
navigation
,
})
=>
{
})
=>
{
const
{
isAuthenticated
}
=
useUserAuthenticationContext
();
const
{
isAuthenticated
}
=
useUserAuthenticationContext
();
...
...
src/screens/UserLoginScreen.tsx
View file @
6869818a
import
{
useUserAuthenticationContext
}
from
"@/contexts/UserAuthenticationContext"
;
import
{
useUserAuthenticationContext
}
from
"@/contexts/UserAuthenticationContext"
;
import
type
{
UnloggedUser
StackScreenComponentProps
}
from
"@/navigations/Types"
;
import
type
{
Main
StackScreenComponentProps
}
from
"@/navigations/Types"
;
import
authenticateUser
from
"@/utils/requests/authenticateUser"
;
import
authenticateUser
from
"@/utils/requests/authenticateUser"
;
import
getUserInformations
from
"@/utils/requests/userInformations"
;
import
getUserInformations
from
"@/utils/requests/userInformations"
;
import
Button
from
"@components/Button"
;
import
Button
from
"@components/Button"
;
...
@@ -19,9 +19,7 @@ import { useSafeAreaInsets } from "react-native-safe-area-context";
...
@@ -19,9 +19,7 @@ import { useSafeAreaInsets } from "react-native-safe-area-context";
import
{
LOG
}
from
"@logger"
;
import
{
LOG
}
from
"@logger"
;
const
log
=
LOG
.
extend
(
"UserLoginScreen"
);
const
log
=
LOG
.
extend
(
"UserLoginScreen"
);
const
UserLoginScreen
:
UnloggedUserStackScreenComponentProps
<
"userLoginScreen"
>
=
({
const
UserLoginScreen
:
MainStackScreenComponentProps
<
"userLoginScreen"
>
=
({
navigation
})
=>
{
navigation
,
})
=>
{
log
.
debug
(
"UserLoginScreen"
);
log
.
debug
(
"UserLoginScreen"
);
const
insets
=
useSafeAreaInsets
();
const
insets
=
useSafeAreaInsets
();
const
{
setAuthenticationData
}
=
useUserAuthenticationContext
();
const
{
setAuthenticationData
}
=
useUserAuthenticationContext
();
...
...
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