Merge pull request #22 from lemeow125/hotfix/empty_notes

Hotfix for empty notes prompt being broken
This commit is contained in:
lemeow125 2023-04-16 20:09:37 +08:00 committed by GitHub
commit 3c489b2a65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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>
); );
} }