diff --git a/twistter-frontend/src/Writing_Microblogs.js b/twistter-frontend/src/Writing_Microblogs.js index 4d7484d..2283e61 100644 --- a/twistter-frontend/src/Writing_Microblogs.js +++ b/twistter-frontend/src/Writing_Microblogs.js @@ -3,6 +3,27 @@ import { BrowserRouter as Router } from "react-router-dom"; import Route from "react-router-dom/Route"; import axios from "axios"; +// Material-UI +import TextField from '@material-ui/core/TextField'; +import Typography from '@material-ui/core/Typography'; +import Button from '@material-ui/core/Button'; +import withStyles from "@material-ui/styles/withStyles"; + +const styles = { + container: { + position: "fixed" + }, + form: { + width: "300px", + height: "50px", + marginTop: "180px", + marginLeft: "50px" + }, + textField: { + marginBottom: 15 + } +} + class Writing_Microblogs extends Component { constructor(props) { super(props); @@ -27,7 +48,7 @@ class Writing_Microblogs extends Component { this.setState({ topics: event.target.value }); } - handleSubmit(event) { + handleSubmit = (event) => { // alert('A title for the microblog was inputted: ' + this.state.title + '\nA microblog was posted: ' + this.state.value); const postData = { body: this.state.value, @@ -67,6 +88,7 @@ class Writing_Microblogs extends Component { } handleChangeforPost(event) { + this.setState({ value: event.target.value }); } @@ -77,65 +99,68 @@ class Writing_Microblogs extends Component { } render() { + const { classes } = this.props; return ( -
-
-
-