mirror of
https://github.com/lemeow125/Reactnative-notesapp.git
synced 2024-11-16 22:19:26 +08:00
Merge pull request #22 from lemeow125/hotfix/empty_notes
Hotfix for empty notes prompt being broken
This commit is contained in:
commit
3c489b2a65
1 changed files with 14 additions and 11 deletions
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue