Add “No emoji found” to empty search results

release
Etienne Lemay 2016-06-01 11:38:11 -04:00
parent c51503a662
commit ecd2eb5e74
2 changed files with 25 additions and 0 deletions

View File

@ -69,6 +69,17 @@
border-radius: 5px;
}
.emoji-picker-no-results {
font-size: 14px;
text-align: center;
padding-top: 70px;
color: #858585;
}
.emoji-picker-no-results span {
display: inline-block;
vertical-align: middle;
}
.emoji-picker-preview {
position: relative;
height: 70px;

View File

@ -64,6 +64,20 @@ export default class Category extends React.Component {
{...emojiProps}
/>
)}
{!emojis.length &&
<div className='emoji-picker-no-results'>
<Emoji
{...emojiProps}
size={22}
emoji='sleuth_or_spy'
/>
<span className='emoji-picker-no-results-label'>
No emoji found
</span>
</div>
}
</div>
}
}