Skip to content

Commit

Permalink
Updated copy changes for display NFT Media (#20380)
Browse files Browse the repository at this point in the history
* updated copy changes

* updated snapshots

* lint fix

* updated test
  • Loading branch information
NidhiKJha authored Aug 3, 2023
1 parent 23ea1a6 commit 6c1b71b
Show file tree
Hide file tree
Showing 22 changed files with 20 additions and 116 deletions.
6 changes: 0 additions & 6 deletions app/_locales/de/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions app/_locales/el/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions app/_locales/en/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions app/_locales/es/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions app/_locales/es_419/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions app/_locales/fr/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions app/_locales/hi/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions app/_locales/id/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions app/_locales/ja/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions app/_locales/ko/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions app/_locales/pt/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions app/_locales/pt_BR/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions app/_locales/ru/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions app/_locales/tl/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions app/_locales/tr/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions app/_locales/vi/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions app/_locales/zh_CN/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ui/helpers/constants/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ export const SETTINGS_CONSTANTS = [
},
{
tabMessage: (t) => t('securityAndPrivacy'),
sectionMessage: (t) => t('enableOpenSeaAPI'),
descriptionMessage: (t) => t('enableOpenSeaAPIDescription'),
sectionMessage: (t) => t('displayNftMedia'),
descriptionMessage: (t) => t('displayNftMediaDescription'),
route: `${SECURITY_ROUTE}#opensea-api`,
icon: 'fa fa-lock',
},
Expand Down
8 changes: 4 additions & 4 deletions ui/helpers/utils/settings-search.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ const t = (key) => {
return 'Autodetect tokens';
case 'autoDetectTokensDescription':
return 'We use third-party APIs to detect and display new tokens sent to your wallet. Turn off if you don’t want the app to pull data from those services.';
case 'enableOpenSeaAPI':
return 'Enable OpenSea API';
case 'enableOpenSeaAPIDescription':
return "Use OpenSea's API to fetch NFT data. NFT auto-detection relies on OpenSea's API, and will not be available when this is turned off.";
case 'displayNftMedia':
return 'Display NFT media';
case 'displayNftMediaDescription':
return "Displaying NFT media and data exposes your IP address to OpenSea or other third parties. This can allow attackers to associate your IP address with your Ethereum address. NFT autodetection relies on this setting, and won't be available when this is turned off.";
case 'useNftDetection':
return 'Autodetect NFTs';
case 'useNftDetectionDescription':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -721,20 +721,20 @@ exports[`Security Tab should match snapshot 1`] = `
class="settings-page__content-item"
>
<span>
Enable OpenSea API
Display NFT media
</span>
<div
class="settings-page__content-description"
>
Use OpenSea's API to fetch NFT data. NFT auto-detection relies on OpenSea's API, and will not be available when this is turned off.
Displaying NFT media and data exposes your IP address to OpenSea or other third parties. This can allow attackers to associate your IP address with your Ethereum address. NFT autodetection relies on this setting, and won't be available when this is turned off.
</div>
</div>
<div
class="settings-page__content-item"
>
<div
class="settings-page__content-item-col"
data-testid="enableOpenSeaAPI"
data-testid="displayNftMedia"
>
<label
class="toggle-button toggle-button--off"
Expand Down
6 changes: 3 additions & 3 deletions ui/pages/settings/security-tab/security-tab.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -619,15 +619,15 @@ export default class SecurityTab extends PureComponent {
return (
<div ref={this.settingsRefs[10]} className="settings-page__content-row">
<div className="settings-page__content-item">
<span>{t('enableOpenSeaAPI')}</span>
<span>{t('displayNftMedia')}</span>
<div className="settings-page__content-description">
{t('enableOpenSeaAPIDescription')}
{t('displayNftMediaDescription')}
</div>
</div>
<div className="settings-page__content-item">
<div
className="settings-page__content-item-col"
data-testid="enableOpenSeaAPI"
data-testid="displayNftMedia"
>
<ToggleButton
value={openSeaEnabled}
Expand Down
4 changes: 2 additions & 2 deletions ui/pages/settings/security-tab/security-tab.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ describe('Security Tab', () => {
expect(container).toMatchSnapshot();
});

it('toggles opensea api enabled', async () => {
expect(await toggleCheckbox('enableOpenSeaAPI', false)).toBe(true);
it('toggles Display NFT media enabled', async () => {
expect(await toggleCheckbox('displayNftMedia', false)).toBe(true);
});

it('toggles nft detection', async () => {
Expand Down

0 comments on commit 6c1b71b

Please sign in to comment.