Reordered Tests
This commit is contained in:
@@ -114,9 +114,10 @@ const Calendar = () => {
|
||||
renderItem={({ item }) => (
|
||||
<View style={{ marginLeft: 5, marginBottom: 5, borderBottomWidth: 1, borderColor: '#ccc' }}>
|
||||
<View style={{ flexDirection: 'row', alignItems: 'center', marginBottom: 3 }}>
|
||||
<ThemeText style={{ fontWeight: 'bold', marginRight: 5 }}>
|
||||
{format(item.date, 'dd.MM.yyyy')}
|
||||
</ThemeText>
|
||||
<ThemeText style={{ fontWeight: 'bold', marginRight: 5 }}>{format(item.date, 'dd.MM.yyyy')}</ThemeText>
|
||||
<ThemeText>{`${item.timeFrom}-${item.timeUntil}`}</ThemeText>
|
||||
</View>
|
||||
<View style={{ flexDirection: 'row', alignItems: 'center', marginBottom: 5 }}>
|
||||
<ThemeText style={{ marginRight: 5 }}>{item.subject}</ThemeText>
|
||||
<ThemeText style={{ marginRight: 5 }}>{item.type}</ThemeText>
|
||||
{userInformation.usertype === 'teacher' && (
|
||||
@@ -125,11 +126,8 @@ const Calendar = () => {
|
||||
{userInformation.usertype === 'pupil' && (
|
||||
<ThemeText style={{ marginRight: 5 }}>{item.teacher}</ThemeText>
|
||||
)}
|
||||
</View>
|
||||
<View style={{ flexDirection: 'row', alignItems: 'center', marginBottom: 5 }}>
|
||||
<ThemeText style={{ marginRight: 5 }}>{item.room}</ThemeText>
|
||||
<ThemeText style={{ marginRight: 5 }}>{`${item.hourFrom}-${item.hourUntil}`}</ThemeText>
|
||||
<ThemeText>{`${item.timeFrom}-${item.timeUntil}`}</ThemeText>
|
||||
<ThemeText style={{ marginRight: 5 }}>{`${item.hourFrom||'n'}-${item.hourUntil||'n'}`}</ThemeText>
|
||||
</View>
|
||||
</View>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user