Commit 9aa087a 1 parent 6c38740 commit 9aa087a Copy full SHA for 9aa087a
File tree 3 files changed +7
-11
lines changed
packages/fuselage/src/components/Message
3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 1
- import type { ElementType } from 'react' ;
1
+ import type { ElementType , HTMLAttributes } from 'react' ;
2
2
import React from 'react' ;
3
3
4
4
import { prependClassName } from '../../helpers/prependClassName' ;
@@ -10,9 +10,9 @@ export type MessageHighlightProps = {
10
10
className ?: string ;
11
11
children : any ;
12
12
title ?: string ;
13
- } ;
13
+ } & HTMLAttributes < HTMLElement > ;
14
14
15
- function MessageHighlight ( {
15
+ export function MessageHighlight ( {
16
16
is : Tag = 'span' ,
17
17
variant = 'other' ,
18
18
className,
@@ -34,5 +34,3 @@ function MessageHighlight({
34
34
/>
35
35
) ;
36
36
}
37
-
38
- export default MessageHighlight ;
Original file line number Diff line number Diff line change 1
1
import type { ComponentProps } from 'react' ;
2
2
import React from 'react' ;
3
3
4
- import MessageHighlight from './MessageHighlight' ;
4
+ import { MessageHighlight } from './MessageHighlight' ;
5
5
6
6
type MessageMentionProps = {
7
7
tag ?: '#' | '@' ;
8
8
innerClassName ?: string ;
9
9
} & ComponentProps < typeof MessageHighlight > ;
10
10
11
- function MessageMention ( {
11
+ export function MessageMention ( {
12
12
tag,
13
13
className = '' ,
14
14
innerClassName,
@@ -21,5 +21,3 @@ function MessageMention({
21
21
</ span >
22
22
) ;
23
23
}
24
-
25
- export default MessageMention ;
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ import { MessageContainer } from './MessageContainer';
5
5
import { MessageContainerFixed } from './MessageContainerFixed' ;
6
6
import { MessageDivider } from './MessageDivider' ;
7
7
import { MessageHeader } from './MessageHeader' ;
8
- import MessageHighlight from './MessageHighlight' ;
8
+ import { MessageHighlight } from './MessageHighlight' ;
9
9
import { MessageLeftContainer } from './MessageLeftContainer' ;
10
- import MessageMention from './MessageMention' ;
10
+ import { MessageMention } from './MessageMention' ;
11
11
import MessageMetrics from './MessageMetrics' ;
12
12
import { MessageName } from './MessageName' ;
13
13
import { MessageNameContainer } from './MessageNameContainer' ;
You can’t perform that action at this time.
0 commit comments