diff --git a/app/soapbox/components/birthday_input.js b/app/soapbox/components/birthday_input.js index d94700926..12f42bb59 100644 --- a/app/soapbox/components/birthday_input.js +++ b/app/soapbox/components/birthday_input.js @@ -10,7 +10,7 @@ import IconButton from 'soapbox/components/icon_button'; import { getFeatures } from 'soapbox/utils/features'; const messages = defineMessages({ - birthdayPlaceholder: { id: 'edit_profile.fields.birthday_placeholder', defaultMessage: 'Your birth date' }, + birthdayPlaceholder: { id: 'edit_profile.fields.birthday_placeholder', defaultMessage: 'Your birthday' }, previousMonth: { id: 'datepicker.previous_month', defaultMessage: 'Previous month' }, nextMonth: { id: 'datepicker.next_month', defaultMessage: 'Next month' }, previousYear: { id: 'datepicker.previous_year', defaultMessage: 'Previous year' }, @@ -114,7 +114,6 @@ class EditProfile extends ImmutablePureComponent {
{ @@ -73,7 +73,7 @@ class Account extends ImmutablePureComponent {
diff --git a/app/soapbox/features/edit_profile/index.js b/app/soapbox/features/edit_profile/index.js index 8fe4ddd2b..2266891d1 100644 --- a/app/soapbox/features/edit_profile/index.js +++ b/app/soapbox/features/edit_profile/index.js @@ -50,7 +50,7 @@ const messages = defineMessages({ error: { id: 'edit_profile.error', defaultMessage: 'Profile update failed' }, bioPlaceholder: { id: 'edit_profile.fields.bio_placeholder', defaultMessage: 'Tell us about yourself.' }, displayNamePlaceholder: { id: 'edit_profile.fields.display_name_placeholder', defaultMessage: 'Name' }, - birthdayPlaceholder: { id: 'edit_profile.fields.birthday_placeholder', defaultMessage: 'Your birth date' }, + birthdayPlaceholder: { id: 'edit_profile.fields.birthday_placeholder', defaultMessage: 'Your birthday' }, }); const makeMapStateToProps = () => { @@ -290,11 +290,22 @@ class EditProfile extends ImmutablePureComponent { onChange={this.handleTextChange} rows={3} /> - } - value={this.state.birthday} - onChange={this.handleBirthdayChange} - /> + {supportsBirthdays && ( + <> + } + value={this.state.birthday} + onChange={this.handleBirthdayChange} + /> + } + hint={} + name='show_birthday' + checked={this.state.show_birthday} + onChange={this.handleCheckboxChange} + /> + + )}
@@ -349,13 +360,6 @@ class EditProfile extends ImmutablePureComponent { checked={this.state.discoverable} onChange={this.handleCheckboxChange} /> - {supportsBirthdays && } - hint={} - name='show_birthday' - checked={this.state.show_birthday} - onChange={this.handleCheckboxChange} - />} {supportsEmailList && } hint={} diff --git a/app/soapbox/features/ui/components/profile_info_panel.js b/app/soapbox/features/ui/components/profile_info_panel.js index f90cac95d..6b35c601e 100644 --- a/app/soapbox/features/ui/components/profile_info_panel.js +++ b/app/soapbox/features/ui/components/profile_info_panel.js @@ -98,7 +98,7 @@ class ProfileInfoPanel extends ImmutablePureComponent {
); @@ -107,7 +107,7 @@ class ProfileInfoPanel extends ImmutablePureComponent {