diff --git a/packages/fuselage/src/components/Message/MessageHighlight.tsx b/packages/fuselage/src/components/Message/MessageHighlight.tsx index 0bb52dd54b..721ebdd22c 100644 --- a/packages/fuselage/src/components/Message/MessageHighlight.tsx +++ b/packages/fuselage/src/components/Message/MessageHighlight.tsx @@ -1,4 +1,4 @@ -import type { ElementType } from 'react'; +import type { ElementType, HTMLAttributes } from 'react'; import React from 'react'; import { prependClassName } from '../../helpers/prependClassName'; @@ -10,9 +10,9 @@ export type MessageHighlightProps = { className?: string; children: any; title?: string; -}; +} & HTMLAttributes; -function MessageHighlight({ +export function MessageHighlight({ is: Tag = 'span', variant = 'other', className, @@ -34,5 +34,3 @@ function MessageHighlight({ /> ); } - -export default MessageHighlight; diff --git a/packages/fuselage/src/components/Message/MessageMention.tsx b/packages/fuselage/src/components/Message/MessageMention.tsx index 22baca65e8..88e7ff179f 100644 --- a/packages/fuselage/src/components/Message/MessageMention.tsx +++ b/packages/fuselage/src/components/Message/MessageMention.tsx @@ -1,14 +1,14 @@ import type { ComponentProps } from 'react'; import React from 'react'; -import MessageHighlight from './MessageHighlight'; +import { MessageHighlight } from './MessageHighlight'; type MessageMentionProps = { tag?: '#' | '@'; innerClassName?: string; } & ComponentProps; -function MessageMention({ +export function MessageMention({ tag, className = '', innerClassName, @@ -21,5 +21,3 @@ function MessageMention({ ); } - -export default MessageMention; diff --git a/packages/fuselage/src/components/Message/index.tsx b/packages/fuselage/src/components/Message/index.tsx index d2652ad91a..6c118291ea 100644 --- a/packages/fuselage/src/components/Message/index.tsx +++ b/packages/fuselage/src/components/Message/index.tsx @@ -5,9 +5,9 @@ import { MessageContainer } from './MessageContainer'; import { MessageContainerFixed } from './MessageContainerFixed'; import { MessageDivider } from './MessageDivider'; import { MessageHeader } from './MessageHeader'; -import MessageHighlight from './MessageHighlight'; +import { MessageHighlight } from './MessageHighlight'; import { MessageLeftContainer } from './MessageLeftContainer'; -import MessageMention from './MessageMention'; +import { MessageMention } from './MessageMention'; import MessageMetrics from './MessageMetrics'; import { MessageName } from './MessageName'; import { MessageNameContainer } from './MessageNameContainer';