-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Search hints/autocomplete UI (#2971)
* Implement UI for autocomplete feature * Debounce autocompleteStart() * Fix AMO_CDN env var in dev
- Loading branch information
1 parent
9eb45fc
commit 9fb119b
Showing
16 changed files
with
980 additions
and
295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* @flow */ | ||
import React from 'react'; | ||
|
||
import Icon from 'ui/components/Icon'; | ||
import LoadingText from 'ui/components/LoadingText'; | ||
|
||
|
||
type Props = {| | ||
name: string, | ||
iconUrl: string, | ||
loading: boolean, | ||
arrowAlt?: string, | ||
|}; | ||
|
||
const Suggestion = ({ name, iconUrl, arrowAlt, loading }: Props) => { | ||
return ( | ||
<p className="Suggestion"> | ||
<img alt={name} className="Suggestion-icon" src={iconUrl} /> | ||
<span className="Suggestion-name"> | ||
{loading ? <LoadingText minWidth={20} range={12} /> : name} | ||
</span> | ||
<Icon name="arrow-big-blue" alt={arrowAlt} /> | ||
</p> | ||
); | ||
}; | ||
|
||
export default Suggestion; |
Oops, something went wrong.