Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit 978321a

Browse files
committed
multiline prop added for display
1 parent aaa7a54 commit 978321a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

components/row-events.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const extractImageUrl = input => {
1111

1212
const RowEvent = ({
1313
link,
14+
isMultiLine,
1415
fluid,
1516
description,
1617
name,
@@ -49,7 +50,7 @@ const RowEvent = ({
4950
}
5051
.card_icons {
5152
margin-right: 15px;
52-
display: block;
53+
display: ${isMultiLine ? 'block' : null};
5354
}
5455
@media (max-width: 700px) {
5556
.card_icons {

pages/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ class Home extends React.Component {
148148
<div className="content">
149149
{this.state.indexPageEvent ? (
150150
<RowEvent
151+
isMultiLine={true}
151152
key={this.state.indexPageEvent.id}
152153
name={this.state.indexPageEvent.name}
153154
description={this.state.indexPageEvent.description}

0 commit comments

Comments
 (0)