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

View File

@ -87,7 +87,7 @@ class signup extends Component {
helperText={errors.email} error={errors.email ? true : false} helperText={errors.email} error={errors.email ? true : false}
value={this.state.email} onChange={this.handleChange} /> value={this.state.email} onChange={this.handleChange} />
<br /> <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} helperText={errors.handle} error={errors.handle ? true : false}
value={this.state.handle} onChange={this.handleChange} /> value={this.state.handle} onChange={this.handleChange} />
<br /> <br />