mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
working version of creating a tweet
This commit is contained in:
1 parent
64973a5cc9
commit
e5303436ff
9 files changed
+145
-15
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import React, { useState } from "react";
|
||||
import React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { makeStyles } from "@material-ui/core/styles";
|
||||
import { TextField } from "@material-ui/core";
|
||||
@@ -12,18 +12,20 @@ const useStyles = makeStyles((theme) => ({
|
||||
textFieldInput: {
|
||||
fontSize: "22px",
|
||||
},
|
||||
display: {
|
||||
height: "200px",
|
||||
},
|
||||
}));
|
||||
|
||||
export const TweetText = ({ text, setText }) => {
|
||||
export const TweetText = ({ text, handleChange }) => {
|
||||
const classes = useStyles();
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<TextField
|
||||
value={text}
|
||||
inputProps={{ className: classes.textFieldInput }}
|
||||
className={classes.textField}
|
||||
onChange={(e) => setText(e.target.value)}
|
||||
onChange={handleChange}
|
||||
multiline
|
||||
placeholder={t("APPS_TWITTER_PLACEHOLDER")}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user