Skip to content

Commit

Permalink
Merge pull request #230 from recurship/bugFix/organization_detail_mis…
Browse files Browse the repository at this point in the history
…sing

fix: organisation detail missing
  • Loading branch information
mashhoodr authored Dec 7, 2018
2 parents 2cc88d5 + 2a1e426 commit 1370df5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
6 changes: 5 additions & 1 deletion client/src/components/SummaryContainer/SummaryContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ class SummaryContainer extends Component<Props> {
<Col md="3">
<Row>
<Col md="2">
<i className={this.props.iconName} />
{this.props.logo ? (
<img id="organisation-logo" src={this.props.logo} />
) : (
<i className={this.props.iconName} />
)}
</Col>
<Col md="10">
{this.props.url === null ? (
Expand Down
7 changes: 7 additions & 0 deletions client/src/containers/CurrentEvent/CurrentEvent.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,10 @@
right: 20px;
z-index: 10;
}

#organisation-logo {
width: 35px;
height: 35px;
border-radius: 50%;
background-size: cover;
}
9 changes: 5 additions & 4 deletions client/src/containers/CurrentEvent/CurrentEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ class CurrentEvent extends Component<Props> {
url={`/organisations/${event.organisation.id}/`}
iconName="fa fa-users fa-2x"
content={event.organisation.name}
logo={event.organisation.logo}
/>
</Row>
<DescriptionContainer description={event.description} />
Expand Down Expand Up @@ -133,7 +134,7 @@ class CurrentEvent extends Component<Props> {
</Row>
) : null}

<ContentHeader heading="Organizer Details" />
<ContentHeader heading="Organiser Detail" />
<Row className="block-content">
<SummaryContainer
iconName="fa fa-envelope fa-2x"
Expand All @@ -143,17 +144,17 @@ class CurrentEvent extends Component<Props> {
<SummaryContainer
iconName="fa fa-phone-square fa-2x"
url={null}
content={event.organisation.contact}
content={event.organisation.contactNumber}
/>
<SummaryContainer
iconName="fa fa-facebook-square fa-2x"
url={`https://www.facebook.com/${event.organisation.facebook}`}
url={event.organisation.facebook}
content={event.organisation.facebook}
externalLink={true}
/>
<SummaryContainer
iconName="fa fa-twitter-square fa-2x"
url={`https://www.twitter.com/${event.organisation.twitter}`}
url={event.organisation.twitter}
content={event.organisation.twitter}
externalLink={true}
/>
Expand Down

0 comments on commit 1370df5

Please sign in to comment.