@@ -23,26 +23,24 @@ import {
2323 PageOverlay ,
2424 PanelContainer ,
2525 InfoBar ,
26- Wraper ,
26+ Wrapper ,
27+ SuggestionWrapper ,
2728 AlertBar ,
28- // AvatarImg,
2929 AvatarWrapper ,
3030 ContentWraper ,
3131 Title ,
3232 Desc ,
3333 Hint ,
34- // RepoLang,
35- // RepoStar,
36- // SubInfoWraper,
34+ HintEnter ,
3735} from './styles'
3836
3937const debug = makeDebugger ( 'C:Doraemon' )
4038
4139const HintIcon = ( { index, active, cur } ) => {
4240 return active === cur ? (
43- < Hint >
41+ < HintEnter >
4442 < SuggestionIcons . enter />
45- </ Hint >
43+ </ HintEnter >
4644 ) : (
4745 < Hint > ^ { index } </ Hint >
4846 )
@@ -74,25 +72,27 @@ class DoraemonContainer extends React.Component {
7472 < PanelContainer visible = { visible } >
7573 < InputEditor value = { inputValue } searching = { false } prefix = { prefix } />
7674 { logic . repoNotFound ( store ) && < AlertBar > Repo not found</ AlertBar > }
77- < Wraper empty = { suggestions . length === 0 } >
78- { suggestions . map ( ( suggestion , i ) => (
79- < InfoBar
80- active = { activeRaw === suggestion . raw }
81- key = { suggestion . raw }
82- id = { suggestion . raw }
83- onMouseEnter = { logic . navToSuggestion . bind ( this , suggestion ) }
84- >
85- < AvatarWrapper >
86- < NodeIcon raw = { suggestion . raw } />
87- </ AvatarWrapper >
88- < ContentWraper >
89- < Title > { suggestion . title } </ Title >
90- < Desc > { suggestion . desc } </ Desc >
91- </ ContentWraper >
92- < HintIcon index = { i } active = { activeRaw } cur = { suggestion . raw } />
93- </ InfoBar >
94- ) ) }
95- </ Wraper >
75+ < Wrapper >
76+ < SuggestionWrapper empty = { suggestions . length === 0 } >
77+ { suggestions . map ( ( suggestion , i ) => (
78+ < InfoBar
79+ active = { activeRaw === suggestion . raw }
80+ key = { suggestion . raw }
81+ id = { suggestion . raw }
82+ onMouseEnter = { logic . navToSuggestion . bind ( this , suggestion ) }
83+ >
84+ < AvatarWrapper >
85+ < NodeIcon raw = { suggestion . raw } />
86+ </ AvatarWrapper >
87+ < ContentWraper >
88+ < Title > { suggestion . title } </ Title >
89+ < Desc > { suggestion . desc } </ Desc >
90+ </ ContentWraper >
91+ < HintIcon index = { i } active = { activeRaw } cur = { suggestion . raw } />
92+ </ InfoBar >
93+ ) ) }
94+ </ SuggestionWrapper >
95+ </ Wrapper >
9696 </ PanelContainer >
9797 </ div >
9898 )
0 commit comments