Skip to content

Commit

Permalink
#62 - Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanRufino committed Jun 25, 2018
1 parent ca7eff8 commit 9f2072e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src/components/pages/university-posts/UniversityPosts.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,15 @@ class UniversityPosts extends React.Component {

supportForm = () => {
if (!this.state.postsFromUser) {
return;
return null;
}

const { userId } = this.props.match.params;

return <SupportForm studentTo={userId} />;
};

createTimeLine = () => {
return this.state.posts.map(post => this.postTimeLine(post))
};
createTimeLine = () => this.state.posts.map(post => this.postTimeLine(post));

render() {
return (
Expand Down
6 changes: 3 additions & 3 deletions src/components/shared/SupportForm.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';
import axios from '../../configs/axios';

import { withStyles } from '@material-ui/core/styles';
import TextField from '@material-ui/core/TextField';
import Button from '@material-ui/core/Button';
Expand All @@ -14,6 +12,8 @@ import FormHelperText from '@material-ui/core/FormHelperText';
import FormControl from '@material-ui/core/FormControl';
import Card from '@material-ui/core/Card';

import axios from '../../configs/axios';

const styles = theme => ({
close: {
width: theme.spacing.unit * 4,
Expand Down Expand Up @@ -65,7 +65,7 @@ class SupportForm extends React.Component {
<Card raised>
<CardContent>
<CardHeader
title={'Apoiar este perfil'}
title="Apoiar este perfil"
/>
<FormControl fullWidth className={classes.margin} error aria-describedby="message-error">
<TextField
Expand Down

0 comments on commit 9f2072e

Please sign in to comment.