Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature to disable add files button #132

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

anmol1707
Copy link

@anmol1707 anmol1707 commented Aug 22, 2019

Description

Added a prop that decides whether or not to show the add files button in the input bar.
Closes #134.

Checklist

  • Additions/changes follow the current code structure
  • All changes are related to a single topic
  • Demo tested (npm start) to ensure it still functions as expected, and/or
  • New features are demonstrated to the demo (leave checkbox blank if not applicable)
  • Readme/docs are updated
  • npm run lint passes (npm run lint -- --fix will autofix where possible)

</div>
);
} else {
return null;
Copy link
Contributor

Choose a reason for hiding this comment

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

Hm so this makes the emoji picker icon jump to the left whenever the user starts typing; I think it would be better to always render either the file picker or the send icon. The handler _submitText already just ignores empty messages so I think it would be fine.

Copy link
Contributor

@heatherbooker heatherbooker left a comment

Choose a reason for hiding this comment

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

This looks great! Just the one rendering detail that I'd like to be changed before merging. Thanks so much for your contribution!

@@ -1,5 +1,6 @@
coverage/
demo/dist/
.idea/
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we maybe put this after the .DS_Store entry, and give that section a title like # OS or editor files?

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.

How to hide Attachment Icon?
3 participants