mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-17 02:38: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 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>
|
||||||
@ -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 />
|
||||||
Loading…
Reference in New Issue
Block a user