mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
first working UI
This commit is contained in:
1 parent
c7bbf3bc35
commit
64973a5cc9
7 files changed
+275
-3
No files matched your search
@@ -0,0 +1,33 @@
|
||||
import React, { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { makeStyles } from "@material-ui/core/styles";
|
||||
import { TextField } from "@material-ui/core";
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
textField: {
|
||||
flex: "1 1 100%",
|
||||
padding: "10px 15px",
|
||||
marginTop: "15px",
|
||||
},
|
||||
textFieldInput: {
|
||||
fontSize: "22px",
|
||||
},
|
||||
}));
|
||||
|
||||
export const TweetText = ({ text, setText }) => {
|
||||
const classes = useStyles();
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<TextField
|
||||
value={text}
|
||||
inputProps={{ className: classes.textFieldInput }}
|
||||
className={classes.textField}
|
||||
onChange={(e) => setText(e.target.value)}
|
||||
multiline
|
||||
placeholder={t("APPS_TWITTER_PLACEHOLDER")}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default TweetText;
|
||||
Reference in new issue
Block a user