diff --git a/.env b/.env index de0a81d..3e41fbc 100644 --- a/.env +++ b/.env @@ -25,3 +25,4 @@ SITE_NAME='' STUDIO_BASE_URL='' SUPPORT_URL='' USER_INFO_COOKIE_NAME='' +COLLECT_YEAR_OF_BIRTH='true' diff --git a/.env.development b/.env.development index 05dd4b7..70531ef 100644 --- a/.env.development +++ b/.env.development @@ -26,3 +26,4 @@ SITE_NAME=localhost STUDIO_BASE_URL='' SUPPORT_URL='http://localhost:18000/support' USER_INFO_COOKIE_NAME='edx-user-info' +COLLECT_YEAR_OF_BIRTH='true' diff --git a/.env.test b/.env.test index 5b426af..475c577 100644 --- a/.env.test +++ b/.env.test @@ -25,3 +25,4 @@ SITE_NAME=localhost STUDIO_BASE_URL='' SUPPORT_URL='http://localhost:18000/support' USER_INFO_COOKIE_NAME='edx-user-info' +COLLECT_YEAR_OF_BIRTH='true' diff --git a/src/account-settings/AccountSettingsPage.jsx b/src/account-settings/AccountSettingsPage.jsx index 71432c5..05cea6b 100644 --- a/src/account-settings/AccountSettingsPage.jsx +++ b/src/account-settings/AccountSettingsPage.jsx @@ -583,15 +583,18 @@ class AccountSettingsPage extends React.Component { /> {this.renderSecondaryEmailField(editableFieldProps)} - + {(getConfig().COLLECT_YEAR_OF_BIRTH === 'true') + && ( + + )}