Hotfix for empty notes prompt being broken

This commit is contained in:
keannu125 2023-04-16 20:08:48 +08:00
parent 3ce0a4b0e2
commit 982c29a27e

View file

@ -38,18 +38,21 @@ export default function Notes() {
} else if (notes.length === 0) { } else if (notes.length === 0) {
return ( return (
<View> <View>
<Text style={styles.no}>No notes exist yet. Make one!</Text>; <Text style={{ ...styles.no, ...{ textAlign: "center" } }}>
<View style={styles.homecont}> No notes exist yet. Create one!
<TouchableOpacity </Text>
onPress={() => { <TouchableOpacity
navigation.navigate("New Note"); style={{
}} ...styles.homecont,
> ...{ display: "flex", alignSelf: "center" },
<Text style={styles.newnote}>+</Text> }}
</TouchableOpacity> onPress={() => {
navigation.navigate("New Note");
}}
>
<Text style={styles.newnote}>+</Text>
<Text style={styles.no}>New note...</Text> <Text style={styles.no}>New note...</Text>
<View style={{ margin: 16 }} /> </TouchableOpacity>
</View>
</View> </View>
); );
} }