mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 08:31:23 -05:00
Fix lint errors related to eslint-config-scratch update
This commit is contained in:
parent
faa6a604ed
commit
ca392e6d5b
2 changed files with 2 additions and 2 deletions
|
@ -448,7 +448,7 @@ class DemographicsStep extends React.Component {
|
|||
}));
|
||||
}
|
||||
getYearOptions () {
|
||||
return Array.apply(null, Array(100)).map((v, id) => {
|
||||
return Array(...Array(100)).map((v, id) => {
|
||||
const year = (new Date().getFullYear() - (id + this.props.birthOffset)).toString();
|
||||
return {value: year, label: year};
|
||||
});
|
||||
|
|
|
@ -6,7 +6,7 @@ require('./stepnavigation.scss');
|
|||
|
||||
const StepNavigation = props => (
|
||||
<ul className={classNames('step-navigation', props.className)}>
|
||||
{Array.apply(null, Array(props.steps)).map((v, step) => (
|
||||
{Array(...Array(props.steps)).map((v, step) => (
|
||||
<li
|
||||
className={classNames({
|
||||
active: step < props.active,
|
||||
|
|
Loading…
Reference in a new issue