Fakultas Ilmu Komputer UI

Commit b75336a4 authored by jahnsmichael's avatar jahnsmichael
Browse files

[CHORES] init new scene

parent e784aca0
...@@ -14,6 +14,8 @@ import { ...@@ -14,6 +14,8 @@ import {
ContactInvestigationFormStep2, ContactInvestigationFormStep2,
ContactInvestigationFormStep3, ContactInvestigationFormStep3,
ContactInvestigationFormStep4, ContactInvestigationFormStep4,
EditProfileForm,
ForgetPasswordPage,
MonitoringSelection, MonitoringSelection,
MonitoringMedicalReference, MonitoringMedicalReference,
MonitoringFormFinishPage, MonitoringFormFinishPage,
...@@ -28,7 +30,6 @@ import initialCacheState, { ...@@ -28,7 +30,6 @@ import initialCacheState, {
} from 'contexts/AppContext/cache'; } from 'contexts/AppContext/cache';
import { useMainService } from 'services' import { useMainService } from 'services'
import { Box, Text, Button, Gap } from 'components'; import { Box, Text, Button, Gap } from 'components';
import ForgetPasswordPage from 'scenes/ForgetPasswordPage';
const StyledApp = styled.SafeAreaView` const StyledApp = styled.SafeAreaView`
height: 100%; height: 100%;
...@@ -287,6 +288,7 @@ const App = () => { ...@@ -287,6 +288,7 @@ const App = () => {
<Stack.Screen name="login" component={LoginPage} /> <Stack.Screen name="login" component={LoginPage} />
<Stack.Screen name="forget-password" component={ForgetPasswordPage} /> <Stack.Screen name="forget-password" component={ForgetPasswordPage} />
<Stack.Screen name="home" component={Home} /> <Stack.Screen name="home" component={Home} />
<Stack.Screen name="edit-profile" component={EditProfileForm} />
<Stack.Screen <Stack.Screen
name="contact-investigation-form/1" name="contact-investigation-form/1"
component={ContactInvestigationFormStep1} component={ContactInvestigationFormStep1}
......
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
import { Box } from "components";
import React from "react";
const EditProfileForm = () => {
return (
<Box>
EditProfilePage
</Box>
)
}
export default EditProfileForm;
\ No newline at end of file
...@@ -3,6 +3,8 @@ import ContactInvestigationFormStep1 from './ContactInvestigationFormStep1'; ...@@ -3,6 +3,8 @@ import ContactInvestigationFormStep1 from './ContactInvestigationFormStep1';
import ContactInvestigationFormStep2 from './ContactInvestigationFormStep2'; import ContactInvestigationFormStep2 from './ContactInvestigationFormStep2';
import ContactInvestigationFormStep3 from './ContactInvestigationFormStep3'; import ContactInvestigationFormStep3 from './ContactInvestigationFormStep3';
import ContactInvestigationFormStep4 from './ContactInvestigationFormStep4'; import ContactInvestigationFormStep4 from './ContactInvestigationFormStep4';
import EditProfileForm from './EditProfileForm';
import ForgetPasswordPage from './ForgetPasswordPage';
import LoginPage from './LoginPage'; import LoginPage from './LoginPage';
import MonitoringSelection from './MonitoringSelection'; import MonitoringSelection from './MonitoringSelection';
import OfficerSignupForm from './OfficerSignupForm'; import OfficerSignupForm from './OfficerSignupForm';
...@@ -28,6 +30,8 @@ export { ...@@ -28,6 +30,8 @@ export {
ContactInvestigationFormStep2, ContactInvestigationFormStep2,
ContactInvestigationFormStep3, ContactInvestigationFormStep3,
ContactInvestigationFormStep4, ContactInvestigationFormStep4,
EditProfileForm,
ForgetPasswordPage,
MonitoringSelection, MonitoringSelection,
MonitoringMedicalReference, MonitoringMedicalReference,
MonitoringMedicalCheck, MonitoringMedicalCheck,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment