Skip to content

Commit

Permalink
fixed jsx error and removed .idea from repo
Browse files Browse the repository at this point in the history
  • Loading branch information
cookavich committed Jul 10, 2017
1 parent 1f372be commit 1eccb2c
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 487 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.idea
12 changes: 0 additions & 12 deletions .idea/fcc-camper-leaderboard.iml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

338 changes: 0 additions & 338 deletions .idea/workspace.xml

This file was deleted.

12 changes: 7 additions & 5 deletions src/components/LeaderboardTable.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
import React from 'react';
import LeaderRow from 'LeaderRow.js';
import LeaderRow from './LeaderRow.js';
import Axios from 'axios';

class LeaderboardTable extends React.Component {
constructor(props) {
super(props);
this.state = {
recentLeaders: [],
test: 1
};
}

componentDidMount() {
axios.get("https://fcctop100.herokuapp.com/api/fccusers/top/recent")
Axios.get("https://fcctop100.herokuapp.com/api/fccusers/top/recent")
.then(res => {
this.setState({
recentLeaders: res
recentLeaders: res.data
})
})
}

render() {
return (
<LeaderRow/>
<div>
{this.state.recentLeaders && <LeaderRow/>}
</div>
)
}
}
Expand Down
4 changes: 1 addition & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@ import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';

ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
ReactDOM.render(<App />, document.getElementById('root'));
7 changes: 0 additions & 7 deletions src/logo.svg

This file was deleted.

108 changes: 0 additions & 108 deletions src/registerServiceWorker.js

This file was deleted.

0 comments on commit 1eccb2c

Please sign in to comment.