mirror of
https://github.com/lemeow125/Reactnative-notesapp.git
synced 2024-11-17 06:29:27 +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) {
|
} 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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue