diff --git a/components/TimelineEvent.js b/components/TimelineEvent.js index 212fb2f..9f253c8 100644 --- a/components/TimelineEvent.js +++ b/components/TimelineEvent.js @@ -3,8 +3,7 @@ import s from './styles' class TimelineEvent extends Component { - eventNotificationStyle () { - const {iconColor} = this.props + mergeNotificationStyle (iconColor) { if (iconColor) { return {...s.eventType, ...{color: iconColor, borderColor: iconColor}} } else { @@ -12,8 +11,7 @@ class TimelineEvent extends Component { } } - contentStyle () { - const {contentStyle} = this.props + mergeContentStyle (contentStyle) { if (contentStyle) { return {...s.message, ...contentStyle} } else { @@ -24,7 +22,7 @@ class TimelineEvent extends Component { render () { const {createdAt, title, contentStyle, buttons, icon, iconColor, ...otherProps} = this.props return