mirror of
https://github.com/reactos/developer-web-interface.git
synced 2024-11-23 03:49:43 +00:00
cleaning commits & commitsCard.js
This commit is contained in:
parent
685967a2c9
commit
dd09bfc550
@ -11,11 +11,6 @@ class Commits extends React.Component {
|
||||
this.props.loadCommits();
|
||||
}
|
||||
renderCommits = commit => {
|
||||
let tog = 'toggler' + commit.sha;
|
||||
let committerDate = new Date(commit.commit.committer.date);
|
||||
let authorDate = new Date(commit.commit.author.date);
|
||||
let author = encodeURIComponent(commit.commit.author.name);
|
||||
let committer = encodeURIComponent(commit.commit.committer.name);
|
||||
return (
|
||||
<div className='panel-margin' key={commit.sha}>
|
||||
<CommitsCard commit={commit} />
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import { UncontrolledCollapse, CardBody, Card, CardHeader } from 'reactstrap';
|
||||
export default class CommitsCard extends React.Component {
|
||||
class CommitsCard extends React.Component {
|
||||
render() {
|
||||
let tog = 'toggler' + this.props.commit.sha;
|
||||
let committerDate = new Date(this.props.commit.commit.committer.date);
|
||||
@ -92,3 +92,4 @@ export default class CommitsCard extends React.Component {
|
||||
);
|
||||
}
|
||||
}
|
||||
export default CommitsCard;
|
||||
|
Loading…
Reference in New Issue
Block a user