Skip to content

Conversation

@MartinCupela
Copy link
Contributor

@MartinCupela MartinCupela commented Sep 14, 2021

Adding optional emojiI18n prop to StatusUpdateFormProps in order the user can pass custom strings / translations to EmojiPicker.

@github-actions
Copy link

github-actions bot commented Sep 14, 2021

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
dist/index.js 216.87 KB (-0.05% 🔽) 4.4 s (-0.05% 🔽) 468 ms (-1.78% 🔽) 4.9 s
dist/index.css 8.17 KB (0%) 164 ms (0%) 0 ms (+100% 🔺) 164 ms

Copy link
Contributor

@mahboubii mahboubii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Could you also add some tests for this?

arnautov-anton
arnautov-anton previously approved these changes Sep 14, 2021
@MartinCupela
Copy link
Contributor Author

LGTM, Could you also add some tests for this?

@mahboubii will do :)

@MartinCupela
Copy link
Contributor Author

@arnautov-anton @mahboubii Finally added those tests to EmojiPicker + StatusUpdateForm. I have only tested that the props are correctly passed down. Could you please review these changes? Thank you

MartinCupela and others added 4 commits September 17, 2021 06:44
Use PropsWithChildren

Co-authored-by: Anton Arnautov <43254280+arnautov-anton@users.noreply.github.com>
Use PropsWithChildren

Co-authored-by: Anton Arnautov <43254280+arnautov-anton@users.noreply.github.com>
Use default props

Co-authored-by: Anton Arnautov <43254280+arnautov-anton@users.noreply.github.com>
@arnautov-anton
Copy link
Contributor

LGTM. 👍

arnautov-anton
arnautov-anton previously approved these changes Sep 17, 2021
src/i18n/en.json Outdated
Comment on lines 27 to 26
"Smileys & Emotion": "Smileys & Emotion",
"Smileys & People": "Smileys & People",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this change necessary to adapt to emoji-mart default set?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mahboubii the intention was not only to align it with the npm package, but also with the key under which it is stored in the I18n object (categories.people). Do you prefer me to revert this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reverting back to Smileys & Emotion

Co-authored-by: Amin Mahboubi <amin@getstream.io>
@arnautov-anton arnautov-anton merged commit c21a557 into main Sep 22, 2021
@arnautov-anton arnautov-anton deleted the add-i18n-to-EmojiPicker branch September 22, 2021 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants