Fixed issue with GroupCreate from GroupsPage nav action on mobile

• Fixed:
- issue with GroupCreate from GroupsPage nav action on mobile
This commit is contained in:
mgabdev 2020-08-10 22:32:47 -05:00
parent a32740c065
commit 80b264be30

View File

@ -195,7 +195,8 @@ class NavigationBar extends ImmutablePureComponent {
isNarrow isNarrow
backgroundColor='none' backgroundColor='none'
color='primary' color='primary'
onClick={() => action.onClick()} to={action.to || undefined}
onClick={action.onClick ? () => action.onClick() : undefined}
key={`action-btn-${i}`} key={`action-btn-${i}`}
className={[_s.ml5, _s.height53PX, _s.justifyContentCenter, _s.px5].join(' ')} className={[_s.ml5, _s.height53PX, _s.justifyContentCenter, _s.px5].join(' ')}
icon={action.icon} icon={action.icon}