Skip to content

fixed highlight in inbox#1119

Merged
AudreyKj merged 4 commits intodevelopfrom
fix/1112-highlight-current-conversation
Mar 3, 2021
Merged

fixed highlight in inbox#1119
AudreyKj merged 4 commits intodevelopfrom
fix/1112-highlight-current-conversation

Conversation

@AudreyKj
Copy link
Copy Markdown
Contributor

@AudreyKj AudreyKj commented Mar 3, 2021

resolves #1112

fixed: highlights conversation when selected
Screenshot 2021-03-03 at 08 39 55

@github-actions github-actions Bot added the fix label Mar 3, 2021

<MessengerContainer {...props} />
</Fragment>
)}
Copy link
Copy Markdown
Contributor Author

@AudreyKj AudreyKj Mar 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

an alternative to including ConversationList in this route would be to fetch the conversation id from the pathname in ConversationList (as match.params.conversationId would not be available in this component) (which is the solution used in Platform)

const match: any = matchPath(ownProps.history.location.pathname, { path: '/inbox/conversations/:id', });

AitorAlgorta
AitorAlgorta previously approved these changes Mar 3, 2021
path={[`${match.url}/conversations/:conversationId`, `${match.url}`]}
render={props => <MessengerContainer {...props} />}
render={props => (
<Fragment>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can just use <>

@AudreyKj AudreyKj merged commit b74db8a into develop Mar 3, 2021
@AudreyKj AudreyKj deleted the fix/1112-highlight-current-conversation branch March 3, 2021 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inbox: highlight current conversation

3 participants