* Building out settings area
* Flow and refactoring
* TeamLogo
* Add temporary profile screen
* 💚
* PR feedback
16 lines
292 B
JavaScript
16 lines
292 B
JavaScript
// @flow
|
|
import { Team } from '../models';
|
|
|
|
function present(ctx: Object, team: Team) {
|
|
ctx.cache.set(team.id, team);
|
|
|
|
return {
|
|
id: team.id,
|
|
name: team.name,
|
|
avatarUrl:
|
|
team.avatarUrl || (team.slackData ? team.slackData.image_88 : null),
|
|
};
|
|
}
|
|
|
|
export default present;
|