diff --git a/twistter-frontend/src/Writing_Microblogs.js b/twistter-frontend/src/Writing_Microblogs.js
index 9cac7b7..e800d56 100644
--- a/twistter-frontend/src/Writing_Microblogs.js
+++ b/twistter-frontend/src/Writing_Microblogs.js
@@ -3,6 +3,29 @@ 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 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: 20
+ }
+ // TextField: {
+ // marginBottom: "30px"
+ // }
+}
+
class Writing_Microblogs extends Component {
constructor(props) {
super(props);
@@ -64,65 +87,147 @@ class Writing_Microblogs extends Component {
}
render() {
+ const { classes } = this.props;
return (
-
-
-
-
-
-
-
+ //
+ //
+ //
+ //
+ //
+ //
+ //
-
-
-
+ //
+ //
+ //
+ //
+
+
);
}
}
-export default Writing_Microblogs;
+// export default Writing_Microblogs;
+export default withStyles(styles)(Writing_Microblogs);
diff --git a/twistter-frontend/src/pages/Home.js b/twistter-frontend/src/pages/Home.js
index cee0a93..e331479 100644
--- a/twistter-frontend/src/pages/Home.js
+++ b/twistter-frontend/src/pages/Home.js
@@ -31,6 +31,11 @@ class Home extends Component {
.catch(err => console.log(err));
}
+ formatDate(dateString) {
+ let newDate = new Date(Date.parse(dateString));
+ return newDate.toDateString();
+ }
+
render() {
let authenticated = this.props.user.authenticated;
@@ -44,8 +49,8 @@ class Home extends Component {
(

)
}
-
{post.userHandle}
-
{post.createdAt}
+
{post.userHandle}
+
{this.formatDate(post.createdAt)}
{post.microBlogTitle}
{post.body}
diff --git a/twistter-frontend/src/pages/user.js b/twistter-frontend/src/pages/user.js
index 9f5f656..acb11ae 100644
--- a/twistter-frontend/src/pages/user.js
+++ b/twistter-frontend/src/pages/user.js
@@ -97,6 +97,11 @@ class user extends Component {
.catch(err => console.log(err));
}
+ formatDate(dateString) {
+ let newDate = new Date(Date.parse(dateString));
+ return newDate.toDateString();
+ }
+
render() {
let authenticated = this.props.user.authenticated;
let classes = this.props;
@@ -132,7 +137,7 @@ class user extends Component {
}
{post.userHandle}
-
{post.createdAt}
+
{this.formatDate(post.createdAt)}
{post.microBlogTitle}
{post.body}