Fixed issue with Notification status url 'to' value

• Fixed:
- issue with Notification status url 'to' value
This commit is contained in:
Developer 2021-02-28 19:24:42 -05:00
parent 0839160efd
commit ea3e126579
1 changed files with 12 additions and 15 deletions

View File

@ -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,8 +147,6 @@ class Notification extends ImmutablePureComponent {
{' '} {' '}
{message} {message}
</Text> </Text>
{
!!statusUrl &&
<React.Fragment> <React.Fragment>
<DotTextSeperator /> <DotTextSeperator />
<DateWrapperContainer <DateWrapperContainer
@ -160,7 +158,6 @@ class Notification extends ImmutablePureComponent {
</Text> </Text>
</DateWrapperContainer> </DateWrapperContainer>
</React.Fragment> </React.Fragment>
}
</div> </div>
</div> </div>
{ {