diff --git a/app/Announcements.js b/app/Announcements.js index 2261c5d..845e7de 100644 --- a/app/Announcements.js +++ b/app/Announcements.js @@ -32,15 +32,22 @@ const Announcement = ({item}) => { const dateInfo = dateStr===item.item.date&&item.item.time!==undefined?item.item.time:item.item.date; return ( - {dateInfo!==undefined?{dateInfo}:<>} - {item.item.message} + + + {item.item.message} + + + {dateInfo!==undefined?{dateInfo}:<>} + + + ) } export const TeacherList = ({route}) => { return ( - + } @@ -54,7 +61,7 @@ function TeacherButton(props) { const [color, setColor] = useState(props.color?props.color:'lightgrey') return ( - {props.navigation.navigate('TeacherList',{data:props.data,name:props.name})}} activeOpacity={0.8}> + {props.navigation.navigate('TeacherList',{data:props.data,name:props.name})}} activeOpacity={0.8}> {props.name} {props.icon?{setColor(color=='#dba309'?'lightgrey':'#dba309');props.addFavorite(props.name)}}/>:<>}