Using the host name instead of host ID

This commit is contained in:
Nikola Bjelo committed 2018-10-29 17:17:00 +01:00
1 parent 35ee227fd2
commit b8591b7950
2 files changed
+7 -3

No files matched your search

+2 -2
View File
@@ -44,7 +44,7 @@ class Event extends React.Component {
designator,
startDatetime,
finishDatetime,
hostId,
host,
description
} = this.props.event
return (
@@ -56,7 +56,7 @@ class Event extends React.Component {
<Typography gutterBottom>To : {finishDatetime} </Typography>
</Grid>
<Grid item xs>
<Typography gutterBottom>Hosted by: {hostId} </Typography>
<Typography gutterBottom>Hosted by: {host.alias} ({host.lastName} {host.firstName}) </Typography>
<Typography gutterBottom>Formula: </Typography>
<Typography gutterBottom>First prize: </Typography>
</Grid>
+5 -1
View File
@@ -5,7 +5,11 @@ const fragments = `
designator
startDatetime
finishDatetime
hostId
host {
alias
firstName
lastName
}
description
`