Renamed UI diretory back to twistter-frontend

This commit is contained in:
Aaron Sun 2019-10-02 20:18:47 -04:00
parent eed67326f1
commit 5f629f901b
15 changed files with 8 additions and 8 deletions

View File

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

View File

@ -1,5 +1,5 @@
import React, { Component } from 'react';
import axios from 'axios';
//import axios from 'axios';
import Grid from '@material-ui/core/Grid';
@ -8,7 +8,7 @@ import Grid from '@material-ui/core/Grid';
class home extends Component {
state = {
/*state = {
screams: null
}
componentDidMount() {
@ -20,15 +20,15 @@ class home extends Component {
});
})
.catch(err => console.log(err));
}
}*/
render() {
let recentScreamsMarkup = this.state.screams ? (
/*let recentScreamsMarkup = this.state.screams ? (
this.state.screams.map(scream => <p>{scream.body}</p>)
) : (<p>Loading...</p>)
) : (<p>Loading...</p>)*/
return (
<Grid container spacing={16}>
<Grid item sm={8} xs={12}>
{recentScreamsMarkup}
<p>Posts</p>
</Grid>
<Grid item sm={4} xs={12}>
<p>Profile</p>

View File

@ -83,11 +83,11 @@ class signup extends Component {
Sign up
</Typography>
<form noValidate onSubmit={this.handleSubmit}>
<TextField id="email" name="email" type="email" label="Email" className={classes.textField}
<TextField id="email" name="email" type="email" label="Email" className={classes.textField}
helperText={errors.email} error={errors.email ? true : false}
value={this.state.email} onChange={this.handleChange} />
<br />
<TextField id="handle" name="handle" type="text" label="Username" className={classes.textField}
<TextField id="handle" name="handle" type="text" label="handle" className={classes.textField}
helperText={errors.handle} error={errors.handle ? true : false}
value={this.state.handle} onChange={this.handleChange} />
<br />