mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
disable birthdate placeholders
This commit is contained in:
parent
c034c6c701
commit
e9605dcca1
1 changed files with 3 additions and 2 deletions
|
@ -13,7 +13,7 @@ const InfoButton = require('../info-button/info-button.jsx');
|
|||
require('./join-flow-steps.scss');
|
||||
|
||||
const getBirthMonthOptions = intl => ([
|
||||
{value: 'null', label: intl.formatMessage({id: 'general.month'})},
|
||||
{value: 'null', label: intl.formatMessage({id: 'general.month'}), disabled: true},
|
||||
{value: '1', label: intl.formatMessage({id: 'general.monthJanuary'})},
|
||||
{value: '2', label: intl.formatMessage({id: 'general.monthFebruary'})},
|
||||
{value: '3', label: intl.formatMessage({id: 'general.monthMarch'})},
|
||||
|
@ -37,7 +37,8 @@ const getBirthYearOptions = intl => {
|
|||
.map((defaultVal, i) => (
|
||||
{value: String(curYear - i), label: String(curYear - i)}
|
||||
));
|
||||
birthYearOptions.unshift({
|
||||
birthYearOptions.unshift({ // set placeholder as first option
|
||||
disabled: true,
|
||||
value: 'null',
|
||||
label: intl.formatMessage({id: 'general.year'})
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue