diff --git a/components/Header/index.js b/components/Header/index.js
index e740a99d8..9a8436367 100644
--- a/components/Header/index.js
+++ b/components/Header/index.js
@@ -13,7 +13,7 @@ import I18n from '../../modules/i18n';
import countService from '../../services/parse/calculate';
import styles from './index.styles';
-const Header = ({ logOut }) => {
+const Header = ({ logOut, view, setView, setPrevView }) => {
const { header, headerText, headerIcon } = styles;
const [drawerOpen, setDrawerOpen] = useState(false);
@@ -104,11 +104,14 @@ const Header = ({ logOut }) => {
setSubmission(false);
});
});
- // .catch(() => {
- // setSubmission(false);
- // });
};
+ const navToSettings = () => {
+ setDrawerOpen(false);
+ setPrevView(view)
+ setView('Settings');
+ }
+
return (
@@ -120,14 +123,12 @@ const Header = ({ logOut }) => {
/>
- {logOut && (
-
- )}
+
{drawerOpen === true
@@ -146,8 +147,8 @@ const Header = ({ logOut }) => {
{I18n.t('header.submitOffline')}
) : (
-
- )}
+
+ )}
{submission === false && (
{I18n.t('header.failedAttempt')}
@@ -171,6 +172,7 @@ const Header = ({ logOut }) => {
)}
+
)}
{
const [scrollViewScroll, setScrollViewScroll] = useState();
const [view, setView] = useState('Root');
+ const [prevView, setPrevView] = useState('Root')
const [selectedForm, setSelectedForm] = useState('id');
const [selectedAsset, setSelectedAsset] = useState(null);
@@ -134,6 +136,9 @@ const DataCollection = ({ navigation }) => {
>
{
/>
)}
+ {view === 'Settings' && (
+
+ )}
diff --git a/domains/Settings/index.js b/domains/Settings/index.js
new file mode 100644
index 000000000..cc91470cd
--- /dev/null
+++ b/domains/Settings/index.js
@@ -0,0 +1,155 @@
+import React, { useState } from 'react';
+import { Keyboard, TouchableWithoutFeedback, View, StyleSheet } from 'react-native';
+import { Button, Headline, IconButton, Text } from 'react-native-paper';
+import { Header } from 'react-native/Libraries/NewAppScreen';
+import { theme } from '../../modules/theme'
+
+export default SettingsView = ({ setView, prevView, logOut }) => {
+
+ const [settingsView, setSettingsView] = useState('Settings')
+ return (
+
+
+ {settingsView === 'Settings' && (
+
+
+
+
+
+
+
+
+
+
+ Account Settings
+
+
+ Name, Phone, Email
+
+
+
+
+ Change Password
+
+
+
+
+ Find Records
+
+
+
+
+ Language
+
+
+
+
+
+ )}
+ {settingsView === 'Support' && (
+
+
+
+
+
+
+
+
+
+ )}
+
+
+
+
+
+
+
+
+
+ );
+}
+
+const styles = StyleSheet.create({
+ cardSmallStyle: {
+ height: 110,
+ width: 150,
+ marginHorizontal: 7,
+ marginVertical: 7,
+ },
+ svg: {
+ marginLeft: 'auto',
+ marginRight: 'auto',
+ },
+ cardContainer: {
+ alignItems: 'center',
+ marginHorizontal: 14,
+ marginVertical: 14,
+ },
+ textContainer: {
+ flexDirection: 'row'
+ },
+ text: {
+ flexShrink: 1,
+ // fontWeight: 'bold',
+ fontSize: 16,
+ color: '#555',
+ marginVertical: 7,
+ }
+});
\ No newline at end of file