@trii/components 2.0.21 → 2.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -8857,7 +8857,9 @@ const Header = ({ imgUrl, name, contactId, navigate, isLoading = false, onError,
8857
8857
  const handleNavigateToContacts = handleNavigation(isBusiness
8858
8858
  ? `/a/contacts/business/${contactId}`
8859
8859
  : `/a/contacts/contacts/${contactId}`);
8860
- const handleNavigateToConversations = handleNavigation('/a/conversations/conversations');
8860
+ const handleNavigateToConversations = handleNavigation(contactId
8861
+ ? `/a/conversations/conversations?${isBusiness ? 'businessId' : 'contactId'}=${contactId}`
8862
+ : '/a/conversations/conversations');
8861
8863
  const displayName = name || 'Unknown Contact';
8862
8864
  const avatarAlt = `Avatar for ${displayName}`;
8863
8865
  return (jsxRuntimeExports.jsxs(HeaderContainer, { children: [jsxRuntimeExports.jsxs(ButtonsContainer, { children: [jsxRuntimeExports.jsx(SmallIconButton, { color: "info", size: "small", onClick: (e) => {