Skip to content

Commit 72300af

Browse files
authored
Merge pull request #220 from anushka-codes1/fix-event-info-block-website-175
Fix event info block: Move Website to separate section
2 parents 5d318e8 + bc7b624 commit 72300af

2 files changed

Lines changed: 19 additions & 15 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## 1.0.21 (unreleased)
22

33

4+
- Fix event info block: Move Website URL to separate section with its own heading. [#175]
45
- Update to Relstorage 4.2.1
56
- Simplify and make mxdev config explicit
67
- Add collective.casestudy to mxdev, pin 1.0.0b1 for testing/production.

frontend/src/components/Blocks/InfoBox/Body.jsx

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,8 @@ const Body = (props) => {
6868
</>
6969
)}
7070

71-
{/* Contatcss */}
72-
{(properties.contact_name ||
73-
properties.event_url ||
74-
properties.contact_phone) && (
71+
{/* Contacts */}
72+
{(properties.contact_name || properties.contact_phone) && (
7573
<div className="info-box-contacts">
7674
<h4>{intl.formatMessage(messages.contact)}</h4>
7775

@@ -97,20 +95,25 @@ const Body = (props) => {
9795
{}
9896
</p>
9997
)}
100-
{properties.event_url && (
101-
<p>
102-
<a
103-
href={properties.event_url}
104-
target="_blank"
105-
rel="noopener noreferrer"
106-
>
107-
{intl.formatMessage(messages.website)}
108-
</a>
109-
</p>
110-
)}
11198
</div>
11299
)}
113100

101+
{/* Website */}
102+
{properties.event_url && (
103+
<>
104+
<h4>{intl.formatMessage(messages.website)}</h4>
105+
<p>
106+
<a
107+
href={properties.event_url}
108+
target="_blank"
109+
rel="noopener noreferrer"
110+
>
111+
{properties.event_url}
112+
</a>
113+
</p>
114+
</>
115+
)}
116+
114117
{/* Attendees */}
115118
{properties.attendees.length > 0 && (
116119
<>

0 commit comments

Comments
 (0)