twitter char limit to 160 and added scroll

This commit is contained in:
Kire committed 2021-02-04 22:29:47 -05:00
1 parent 63aea89e2b
commit 1fca1ac200
3 files changed
+8 -2

No files matched your search

@@ -114,7 +114,11 @@ export const AddTweetModal = () => {
_handleClose();
};
const handleMessageChange = (e) => setMessage(e.target.value);
const handleMessageChange = (e: StandardInputProps['onChange']) => {
const message = e.target.value;
if (message.length > config.twitter.characterLimit) return;
setMessage(message)
}
const addImage = () => {
// strip any whitespace from the link in case the user