Skip to content

Commit

Permalink
Add banner to profile page explaining syncing (#91962)
Browse files Browse the repository at this point in the history
* Add banner to profile page explaining syncing

* Update copy

* Add banner to /me/account
  • Loading branch information
DustyReagan authored Jun 25, 2024
1 parent 30e511b commit 0fb8a0d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions client/me/account/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { connect } from 'react-redux';
import CSSTransition from 'react-transition-group/CSSTransition';
import TransitionGroup from 'react-transition-group/TransitionGroup';
import ColorSchemePicker from 'calypso/blocks/color-scheme-picker';
import { Banner } from 'calypso/components/banner';
import QueryUserSettings from 'calypso/components/data/query-user-settings';
import FormButton from 'calypso/components/forms/form-button';
import FormButtonsBar from 'calypso/components/forms/form-buttons-bar';
Expand Down Expand Up @@ -883,6 +884,19 @@ class Account extends Component {
}
) }
/>
<Banner
disableHref
title={ this.props.translate(
'These settings are applied to sites using the Default admin interface style. {{learnMoreLink}}Learn more{{/learnMoreLink}}.',
{
components: {
learnMoreLink: (
<InlineSupportLink supportContext="admin-interface-style" showIcon={ false } />
),
},
}
) }
/>

<SectionHeader label={ translate( 'Account Information' ) } />
<Card className="account__settings">
Expand Down
14 changes: 14 additions & 0 deletions client/me/profile/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { flowRight as compose } from 'lodash';
import { Component } from 'react';
import { connect } from 'react-redux';
import EditGravatar from 'calypso/blocks/edit-gravatar';
import { Banner } from 'calypso/components/banner';
import FormButton from 'calypso/components/forms/form-button';
import FormFieldset from 'calypso/components/forms/form-fieldset';
import FormTextInput from 'calypso/components/forms/form-text-input';
Expand Down Expand Up @@ -65,6 +66,19 @@ class Profile extends Component {
}
) }
/>
<Banner
disableHref
title={ this.props.translate(
'These settings are applied to sites using the Default admin interface style. {{learnMoreLink}}Learn more{{/learnMoreLink}}.',
{
components: {
learnMoreLink: (
<InlineSupportLink supportContext="admin-interface-style" showIcon={ false } />
),
},
}
) }
/>

<SectionHeader label={ this.props.translate( 'Profile' ) } />
<Card className="profile__settings">
Expand Down

0 comments on commit 0fb8a0d

Please sign in to comment.