Skip to content

Commit

Permalink
fix(fuselage): MessageMetrics being exported incorrectly (#1344)
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris authored Apr 1, 2024
1 parent 3b70ab8 commit 8f67c5d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/smart-cars-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/fuselage": patch
---

fix: wrong `MessageMetrics` export
15 changes: 12 additions & 3 deletions packages/fuselage/src/components/Message/MessageMetrics/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { MessageMetrics } from './MessageMetrics';
import { MessageMetricsFollowing } from './MessageMetricsFollowing';
import MessageMetricsItem from './MessageMetricsItem';
import MessageMetricsItem, {
MessageMetricsItemIcon,
MessageMetricsItemLabel,
} from './MessageMetricsItem';
import { MessageMetricsReply } from './MessageMetricsReply';

export default Object.assign(MessageMetrics, {
Expand All @@ -18,5 +21,11 @@ export default Object.assign(MessageMetrics, {
Following: MessageMetricsFollowing,
});

export { MessageMetrics, MessageMetricsFollowing, MessageMetricsReply };
export * from './MessageMetricsItem';
export {
MessageMetrics,
MessageMetricsItem,
MessageMetricsItemIcon,
MessageMetricsItemLabel,
MessageMetricsFollowing,
MessageMetricsReply,
};

0 comments on commit 8f67c5d

Please sign in to comment.