Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Feb 17, 2017
1 parent aba99f6 commit 297c595
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/components/Matches/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { IconRadiant, IconDire, IconTrophy } from 'components/Icons';
import matchStyles from 'components/Match/Match.css';
import Match from 'components/Match';
import TabBar from 'components/TabBar';
import styles from './Matches.css';
import heroes from 'dotaconstants/build/heroes.json';
import styles from './Matches.css';

const matchesColumns = [{
displayName: strings.th_match_id,
Expand Down Expand Up @@ -62,15 +62,17 @@ const publicMatchesColumns = [
displayFn: transformations.duration,
},
{
displayName: <span className={matchStyles.teamIconContainer} ><IconRadiant className={matchStyles.iconRadiant} />{strings.general_radiant}</span>,
displayName: <span className={matchStyles.teamIconContainer} ><IconRadiant className={matchStyles.iconRadiant} />{strings.general_radiant}</span>,
field: 'radiant_team',
displayFn: (row, col, field) => (field || '').split(',').map(heroId => <img style={{ width: '50px' }} src={`${API_HOST}${heroes[heroId].img}`} />),
displayFn: (row, col, field) => (field || '').split(',').map(heroId =>
<img key={heroId} style={{ width: '50px' }} src={`${API_HOST}${heroes[heroId].img}`} role="presentation" />),
},
{
displayName: <span className={matchStyles.teamIconContainer} ><IconDire className={matchStyles.iconDire} />{strings.general_dire}</span>,
{
displayName: <span className={matchStyles.teamIconContainer} ><IconDire className={matchStyles.iconDire} />{strings.general_dire}</span>,
field: 'dire_team',
displayFn: (row, col, field) => (field || '').split(',').map(heroId => <img style={{ width: '50px' }} src={`${API_HOST}${heroes[heroId].img}`} />),
}
displayFn: (row, col, field) => (field || '').split(',').map(heroId =>
<img key={heroId} style={{ width: '50px' }} src={`${API_HOST}${heroes[heroId].img}`} role="presentation" />),
},
];

const matchTabs = [{
Expand Down

0 comments on commit 297c595

Please sign in to comment.