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) {
return (
<View>
<Text style={styles.no}>No notes exist yet. Make one!</Text>;
<View style={styles.homecont}>
<Text style={{ ...styles.no, ...{ textAlign: "center" } }}>
No notes exist yet. Create one!
</Text>
<TouchableOpacity
style={{
...styles.homecont,
...{ display: "flex", alignSelf: "center" },
}}
onPress={() => {
navigation.navigate("New Note");
}}
>
<Text style={styles.newnote}>+</Text>
</TouchableOpacity>
<Text style={styles.no}>New note...</Text>
<View style={{ margin: 16 }} />
</View>
</TouchableOpacity>
</View>
);
}