File tree 2 files changed +8
-8
lines changed
docs/client/components/pages/Mention/CustomMentionEditor
stories/Mention/CustomMentionEditor
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const positionSuggestions = ({ state, props }) => {
10
10
let transform ;
11
11
let transition ;
12
12
13
- if ( state . isActive && props . suggestions . size > 0 ) {
13
+ if ( state . isActive && props . suggestions . length > 0 ) {
14
14
transform = 'scaleY(1)' ;
15
15
transition = 'all 0.25s cubic-bezier(.3,1.2,.2,1)' ;
16
16
} else if ( state . isActive ) {
@@ -38,19 +38,19 @@ const Entry = (props) => {
38
38
< div className = { theme . mentionSuggestionsEntryContainer } >
39
39
< div className = { theme . mentionSuggestionsEntryContainerLeft } >
40
40
< img
41
- src = { mention . get ( ' avatar' ) }
41
+ src = { mention . avatar }
42
42
className = { theme . mentionSuggestionsEntryAvatar }
43
43
role = "presentation"
44
44
/>
45
45
</ div >
46
46
47
47
< div className = { theme . mentionSuggestionsEntryContainerRight } >
48
48
< div className = { theme . mentionSuggestionsEntryText } >
49
- { mention . get ( ' name' ) }
49
+ { mention . name }
50
50
</ div >
51
51
52
52
< div className = { theme . mentionSuggestionsEntryTitle } >
53
- { mention . get ( ' title' ) }
53
+ { mention . title }
54
54
</ div >
55
55
</ div >
56
56
</ div >
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const positionSuggestions = ({ state, props }) => {
10
10
let transform ;
11
11
let transition ;
12
12
13
- if ( state . isActive && props . suggestions . size > 0 ) {
13
+ if ( state . isActive && props . suggestions . length > 0 ) {
14
14
transform = 'scaleY(1)' ;
15
15
transition = 'all 0.25s cubic-bezier(.3,1.2,.2,1)' ;
16
16
} else if ( state . isActive ) {
@@ -47,19 +47,19 @@ const Entry = (props) => {
47
47
< div className = { theme . mentionSuggestionsEntryContainer } >
48
48
< div className = { theme . mentionSuggestionsEntryContainerLeft } >
49
49
< img
50
- src = { mention . get ( ' avatar' ) }
50
+ src = { mention . avatar }
51
51
className = { theme . mentionSuggestionsEntryAvatar }
52
52
role = "presentation"
53
53
/>
54
54
</ div >
55
55
56
56
< div className = { theme . mentionSuggestionsEntryContainerRight } >
57
57
< div className = { theme . mentionSuggestionsEntryText } >
58
- { mention . get ( ' name' ) }
58
+ { mention . name }
59
59
</ div >
60
60
61
61
< div className = { theme . mentionSuggestionsEntryTitle } >
62
- { mention . get ( ' title' ) }
62
+ { mention . title }
63
63
</ div >
64
64
</ div >
65
65
</ div >
You can’t perform that action at this time.
0 commit comments