mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-16 02:08:47 +00:00
Renamed UI diretory back to twistter-frontend
This commit is contained in:
parent
eed67326f1
commit
5f629f901b
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 60 KiB |
@ -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>
|
||||
@ -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 />
|
||||
Loading…
Reference in New Issue
Block a user