Fakultas Ilmu Komputer UI

Commit 495aaaed authored by jahnsmichael's avatar jahnsmichael
Browse files

[CHORES] init new scene, ProfilePage

parent ccd05055
......@@ -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"
......
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
import { Box } from "components";
import React from "react";
const ProfilePage = () => {
return (
<Box>
EditProfilePage
</Box>
)
}
export default ProfilePage;
\ No newline at end of file
......@@ -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,
......
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