feat: added kudos wall
This commit is contained in:
parent
7233fb934b
commit
b86da87143
|
@ -11,6 +11,7 @@ import Complete from './Complete';
|
||||||
import Error from './Error';
|
import Error from './Error';
|
||||||
import Withdrawal from './Withdrawal';
|
import Withdrawal from './Withdrawal';
|
||||||
import {sortByAlpha, sortByAttribute} from '../utils';
|
import {sortByAlpha, sortByAttribute} from '../utils';
|
||||||
|
import Praise from './Praise';
|
||||||
/*
|
/*
|
||||||
TODO:
|
TODO:
|
||||||
- list praise for contributor
|
- list praise for contributor
|
||||||
|
@ -54,7 +55,6 @@ class Home extends React.Component {
|
||||||
const currentContributor = await getCurrentContributorData();
|
const currentContributor = await getCurrentContributorData();
|
||||||
|
|
||||||
this.setState({ busy: false, currentContributor, contributorList: contributorList.sort(sortByAlpha('label'))});
|
this.setState({ busy: false, currentContributor, contributorList: contributorList.sort(sortByAlpha('label'))});
|
||||||
|
|
||||||
getAllPraises().then(praises => {
|
getAllPraises().then(praises => {
|
||||||
this.setState({praises: praises.sort(sortByAttribute('time'))});
|
this.setState({praises: praises.sort(sortByAttribute('time'))});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue