Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
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
b75336a4
Commit
b75336a4
authored
Jun 02, 2021
by
jahnsmichael
Browse files
[CHORES] init new scene
parent
e784aca0
Changes
4
Show whitespace changes
Inline
Side-by-side
src/App/index.tsx
View file @
b75336a4
...
...
@@ -14,6 +14,8 @@ import {
ContactInvestigationFormStep2
,
ContactInvestigationFormStep3
,
ContactInvestigationFormStep4
,
EditProfileForm
,
ForgetPasswordPage
,
MonitoringSelection
,
MonitoringMedicalReference
,
MonitoringFormFinishPage
,
...
...
@@ -28,7 +30,6 @@ import initialCacheState, {
}
from
'
contexts/AppContext/cache
'
;
import
{
useMainService
}
from
'
services
'
import
{
Box
,
Text
,
Button
,
Gap
}
from
'
components
'
;
import
ForgetPasswordPage
from
'
scenes/ForgetPasswordPage
'
;
const
StyledApp
=
styled
.
SafeAreaView
`
height: 100%;
...
...
@@ -287,6 +288,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
=
"edit-profile"
component
=
{
EditProfileForm
}
/>
<
Stack
.
Screen
name
=
"contact-investigation-form/1"
component
=
{
ContactInvestigationFormStep1
}
...
...
src/scenes/EditProfileForm/index.test.tsx
0 → 100644
View file @
b75336a4
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
EditProfileForm
from
'
.
'
;
import
{
AppContext
}
from
'
contexts
'
;
const
Stack
=
createStackNavigator
();
it
(
'
renders correctly
'
,
()
=>
{
const
instance
=
ReactTestRenderer
.
create
(
<
NavigationContainer
>
<
Stack
.
Navigator
screenOptions
=
{
{
header
:
()
=>
<></>,
}
}
>
<
Stack
.
Screen
name
=
"edit-profile"
component
=
{
EditProfileForm
}
/>
</
Stack
.
Navigator
>
</
NavigationContainer
>,
);
expect
(
instance
.
toJSON
()).
toMatchSnapshot
();
});
\ No newline at end of file
src/scenes/EditProfileForm/index.tsx
0 → 100644
View file @
b75336a4
import
{
Box
}
from
"
components
"
;
import
React
from
"
react
"
;
const
EditProfileForm
=
()
=>
{
return
(
<
Box
>
EditProfilePage
</
Box
>
)
}
export
default
EditProfileForm
;
\ No newline at end of file
src/scenes/index.ts
View file @
b75336a4
...
...
@@ -3,6 +3,8 @@ import ContactInvestigationFormStep1 from './ContactInvestigationFormStep1';
import
ContactInvestigationFormStep2
from
'
./ContactInvestigationFormStep2
'
;
import
ContactInvestigationFormStep3
from
'
./ContactInvestigationFormStep3
'
;
import
ContactInvestigationFormStep4
from
'
./ContactInvestigationFormStep4
'
;
import
EditProfileForm
from
'
./EditProfileForm
'
;
import
ForgetPasswordPage
from
'
./ForgetPasswordPage
'
;
import
LoginPage
from
'
./LoginPage
'
;
import
MonitoringSelection
from
'
./MonitoringSelection
'
;
import
OfficerSignupForm
from
'
./OfficerSignupForm
'
;
...
...
@@ -28,6 +30,8 @@ export {
ContactInvestigationFormStep2
,
ContactInvestigationFormStep3
,
ContactInvestigationFormStep4
,
EditProfileForm
,
ForgetPasswordPage
,
MonitoringSelection
,
MonitoringMedicalReference
,
MonitoringMedicalCheck
,
...
...
Write
Preview
Supports
Markdown
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