diff --git a/components/Subjects.js b/components/Subjects.js index fb9d2ca..c06ef0e 100644 --- a/components/Subjects.js +++ b/components/Subjects.js @@ -4,10 +4,12 @@ import { Button, Card, FAB, + Portal, Text } from "react-native-paper"; import { + ScrollView, StyleSheet } from "react-native"; @@ -20,13 +22,23 @@ export default function Subjects({ subjects, addSubject, removeSubject }) { setShowDialog(false); } return ( - <> + {subjects.length === 0 ? - No Subjects added. Press + to add a subject. + + No Subjects added. Press + to add a subject. + : null } - {subjects.map(subject => ( - + {subjects.map((subject, idx) => ( +