Fixed issue with Notification status url 'to' value
• Fixed: - issue with Notification status url 'to' value
This commit is contained in:
parent
0839160efd
commit
ea3e126579
|
@ -93,8 +93,8 @@ class Notification extends ImmutablePureComponent {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const DateWrapperContainer = !!status ? NavLink : Dummy
|
|
||||||
const statusUrl = !!status ? status.get('uri') : '/'
|
const statusUrl = !!status ? status.get('uri') : '/'
|
||||||
|
const DateWrapperContainer = !!status && !!statusUrl ? NavLink : Dummy
|
||||||
|
|
||||||
const containerClasses = CX({
|
const containerClasses = CX({
|
||||||
d: 1,
|
d: 1,
|
||||||
|
@ -147,20 +147,17 @@ class Notification extends ImmutablePureComponent {
|
||||||
{' '}
|
{' '}
|
||||||
{message}
|
{message}
|
||||||
</Text>
|
</Text>
|
||||||
{
|
<React.Fragment>
|
||||||
!!statusUrl &&
|
<DotTextSeperator />
|
||||||
<React.Fragment>
|
<DateWrapperContainer
|
||||||
<DotTextSeperator />
|
to={statusUrl}
|
||||||
<DateWrapperContainer
|
className={[_s.noUnderline, _s.text].join(' ')}
|
||||||
to={statusUrl}
|
>
|
||||||
className={[_s.noUnderline, _s.text].join(' ')}
|
<Text size='small' color='tertiary' className={_s.ml5}>
|
||||||
>
|
<RelativeTimestamp timestamp={createdAt} />
|
||||||
<Text size='small' color='tertiary' className={_s.ml5}>
|
</Text>
|
||||||
<RelativeTimestamp timestamp={createdAt} />
|
</DateWrapperContainer>
|
||||||
</Text>
|
</React.Fragment>
|
||||||
</DateWrapperContainer>
|
|
||||||
</React.Fragment>
|
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue