Skip to content

Commit

Permalink
sticky emoji sections on desktop (keybase#23804)
Browse files Browse the repository at this point in the history
  • Loading branch information
songgao authored Apr 15, 2020
1 parent 582b964 commit 79355e6
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ class EmojiPicker extends React.PureComponent<Props, State> {
initialNumToRender={14}
sections={sections}
onSectionChange={this.onSectionChange}
stickySectionHeadersEnabled={Styles.isMobile}
stickySectionHeadersEnabled={true}
renderItem={({item}: {item: Row; index: number}) => this.getEmojiRow(item, emojisPerLine)}
renderSectionHeader={({section}) =>
section.key === 'not-found' ? this.makeNotFound() : this.getSectionHeader(section.title)
Expand Down
84 changes: 84 additions & 0 deletions shared/stories/__tests__/__snapshots__/Storyshots.test.js.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 79355e6

Please sign in to comment.