Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
PPL Sosial
tbcare
tbcare-mobile
Commits
495aaaed
Commit
495aaaed
authored
Jun 02, 2021
by
jahnsmichael
Browse files
[CHORES] init new scene, ProfilePage
parent
ccd05055
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/App/index.tsx
View file @
495aaaed
...
...
@@ -15,6 +15,7 @@ import {
ContactInvestigationFormStep3
,
ContactInvestigationFormStep4
,
EditProfileForm
,
ProfilePage
,
ForgetPasswordPage
,
MonitoringSelection
,
MonitoringMedicalReference
,
...
...
@@ -288,6 +289,7 @@ const App = () => {
<
Stack
.
Screen
name
=
"login"
component
=
{
LoginPage
}
/>
<
Stack
.
Screen
name
=
"forget-password"
component
=
{
ForgetPasswordPage
}
/>
<
Stack
.
Screen
name
=
"home"
component
=
{
Home
}
/>
<
Stack
.
Screen
name
=
"profile"
component
=
{
ProfilePage
}
/>
<
Stack
.
Screen
name
=
"edit-profile"
component
=
{
EditProfileForm
}
/>
<
Stack
.
Screen
name
=
"contact-investigation-form/1"
...
...
src/scenes/ProfilePage/index.test.tsx
0 → 100644
View file @
495aaaed
import
'
react-native
'
;
import
React
from
'
react
'
;
import
{
NavigationContainer
}
from
'
@react-navigation/native
'
;
import
{
createStackNavigator
}
from
'
@react-navigation/stack
'
;
import
ReactTestRenderer
,
{
act
}
from
'
react-test-renderer
'
;
import
ProfilePage
from
'
.
'
;
import
{
AppContext
}
from
'
contexts
'
;
const
Stack
=
createStackNavigator
();
it
(
'
renders correctly
'
,
()
=>
{
const
instance
=
ReactTestRenderer
.
create
(
<
NavigationContainer
>
<
Stack
.
Navigator
screenOptions
=
{
{
header
:
()
=>
<></>,
}
}
>
<
Stack
.
Screen
name
=
"profile"
component
=
{
ProfilePage
}
/>
</
Stack
.
Navigator
>
</
NavigationContainer
>,
);
expect
(
instance
.
toJSON
()).
toMatchSnapshot
();
});
\ No newline at end of file
src/scenes/ProfilePage/index.tsx
0 → 100644
View file @
495aaaed
import
{
Box
}
from
"
components
"
;
import
React
from
"
react
"
;
const
ProfilePage
=
()
=>
{
return
(
<
Box
>
EditProfilePage
</
Box
>
)
}
export
default
ProfilePage
;
\ No newline at end of file
src/scenes/index.ts
View file @
495aaaed
...
...
@@ -4,6 +4,7 @@ import ContactInvestigationFormStep2 from './ContactInvestigationFormStep2';
import
ContactInvestigationFormStep3
from
'
./ContactInvestigationFormStep3
'
;
import
ContactInvestigationFormStep4
from
'
./ContactInvestigationFormStep4
'
;
import
EditProfileForm
from
'
./EditProfileForm
'
;
import
ProfilePage
from
'
./ProfilePage
'
;
import
ForgetPasswordPage
from
'
./ForgetPasswordPage
'
;
import
LoginPage
from
'
./LoginPage
'
;
import
MonitoringSelection
from
'
./MonitoringSelection
'
;
...
...
@@ -30,6 +31,7 @@ export {
ContactInvestigationFormStep2
,
ContactInvestigationFormStep3
,
ContactInvestigationFormStep4
,
ProfilePage
,
EditProfileForm
,
ForgetPasswordPage
,
MonitoringSelection
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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