Skip to content

Commit

Permalink
small cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
philipye314 committed Nov 18, 2024
1 parent fd69c3b commit d73e0b4
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 37 deletions.
Binary file added assets/images/placeholder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 0 additions & 21 deletions src/navigation/mainTabNav.tsx

This file was deleted.

Empty file.
23 changes: 7 additions & 16 deletions src/screens/HealingResources/HopeHealingGuide/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useState } from 'react';
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
import { Text, TouchableOpacity, View } from 'react-native';
import { createDrawerNavigator } from '@react-navigation/drawer';
import styles from './styles';

type RootDrawerParamList = {
ChapterOne: undefined;
Expand All @@ -13,39 +14,39 @@ type RootDrawerParamList = {

function ChapterOne() {
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<View style={styles.drawerItem}>
<Text>Content of Chapter 1</Text>
</View>
);
}

function ChapterTwo() {
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<View style={styles.drawerItem}>
<Text>Chapter 2</Text>
</View>
);
}

function ChapterThree() {
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<View style={styles.drawerItem}>
<Text>Chapter 3</Text>
</View>
);
}

function SectionOne() {
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<View style={styles.drawerItem}>
<Text>Subsection 1 of Chapter 1</Text>
</View>
);
}

function SectionTwo() {
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<View style={styles.drawerItem}>
<Text>Subsection 2 of Chapter 1</Text>
</View>
);
Expand Down Expand Up @@ -113,13 +114,3 @@ export default function HopeHealingGuide() {
</Drawer.Navigator>
);
}

const styles = StyleSheet.create({
drawerLabelText: {
fontWeight: 'bold',
},
subsectionLabelText: {
color: '#666',
paddingLeft: 30,
},
});
16 changes: 16 additions & 0 deletions src/screens/HealingResources/HopeHealingGuide/styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { StyleSheet } from 'react-native';

export default StyleSheet.create({
drawerItem: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
drawerLabelText: {
fontWeight: 'bold',
},
subsectionLabelText: {
color: '#666',
paddingLeft: 30,
},
});

0 comments on commit d73e0b4

Please sign in to comment.