mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Removed a feature flag (#17922)
This commit is contained in:
parent
694773f17a
commit
0cc135fab3
@ -5,6 +5,96 @@ exports[`ExperimentalTab with desktop enabled renders ExperimentalTab component
|
||||
<div
|
||||
class="settings-page__body"
|
||||
>
|
||||
<h4
|
||||
class="box box--margin-top-1 box--margin-bottom-2 box--flex-direction-row typography typography--h4 typography--weight-bold typography--style-normal typography--color-text-alternative"
|
||||
>
|
||||
Privacy
|
||||
</h4>
|
||||
<div
|
||||
class="settings-page__content-row settings-page__content-row-experimental"
|
||||
>
|
||||
<div
|
||||
class="settings-page__content-item"
|
||||
>
|
||||
<span>
|
||||
Enable transaction security providers
|
||||
</span>
|
||||
<div
|
||||
class="settings-page__content-description"
|
||||
>
|
||||
<h6
|
||||
class="box box--margin-top-1 box--margin-bottom-1 box--flex-direction-row typography typography--h6 typography--weight-normal typography--style-normal typography--color-text-alternative"
|
||||
>
|
||||
We use third-party APIs to detect and display risks involved in unsigned transaction and signature requests before you sign them. These services will have access to your unsigned transaction and signature requests, your account address, and your preferred language.
|
||||
</h6>
|
||||
<h6
|
||||
class="box box--margin-top-3 box--margin-bottom-1 box--flex-direction-row typography typography--h6 typography--weight-normal typography--style-normal typography--color-text-alternative"
|
||||
>
|
||||
Select providers:
|
||||
</h6>
|
||||
<div
|
||||
class="settings-page__content-item-col settings-page__content-item-col-open-sea"
|
||||
>
|
||||
<h5
|
||||
class="box box--margin-top-1 box--flex-direction-row typography typography--h5 typography--weight-medium typography--style-normal typography--color-text-default"
|
||||
>
|
||||
OpenSea (Beta)
|
||||
</h5>
|
||||
<label
|
||||
class="toggle-button toggle-button--off"
|
||||
tabindex="0"
|
||||
>
|
||||
<div
|
||||
style="display: flex; width: 52px; align-items: center; justify-content: flex-start; position: relative; cursor: pointer; background-color: transparent; border: 0px; padding: 0px; user-select: none;"
|
||||
>
|
||||
<div
|
||||
style="width: 40px; height: 24px; padding: 0px; border-radius: 26px; display: flex; align-items: center; justify-content: center; background-color: rgb(242, 244, 246);"
|
||||
>
|
||||
<div
|
||||
style="font-size: 11px; display: flex; align-items: center; justify-content: center; font-family: 'Helvetica Neue', Helvetica, sans-serif; position: relative; color: rgb(250, 250, 250); margin-top: auto; margin-bottom: auto; line-height: 0; opacity: 0; width: 26px; height: 20px; left: 4px;"
|
||||
/>
|
||||
<div
|
||||
style="font-size: 11px; display: flex; align-items: center; justify-content: center; font-family: 'Helvetica Neue', Helvetica, sans-serif; position: relative; color: rgba(255, 255, 255, 0.6); bottom: 0px; margin-top: auto; margin-bottom: auto; padding-right: 5px; line-height: 0; width: 26px; height: 20px; opacity: 1;"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
style="position: absolute; height: 100%; top: 0px; left: 0px; display: flex; flex: 1; align-self: stretch; align-items: center; justify-content: flex-start;"
|
||||
>
|
||||
<div
|
||||
style="width: 18px; height: 18px; display: flex; align-self: center; box-shadow: none; border-radius: 50%; box-sizing: border-box; position: relative; background-color: rgb(106, 115, 125); left: 3px;"
|
||||
/>
|
||||
</div>
|
||||
<input
|
||||
style="border: 0px; height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px;"
|
||||
type="checkbox"
|
||||
value="false"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="toggle-button__status"
|
||||
>
|
||||
<span
|
||||
class="toggle-button__label-off"
|
||||
/>
|
||||
<span
|
||||
class="toggle-button__label-on"
|
||||
/>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<h6
|
||||
class="box box--margin-bottom-1 box--flex-direction-row typography typography--h6 typography--weight-normal typography--style-normal typography--color-text-alternative"
|
||||
>
|
||||
This service is experimental
|
||||
</h6>
|
||||
<h5
|
||||
class="box box--margin-top-2 box--margin-bottom-1 box--flex-direction-row typography typography--h5 typography--weight-medium typography--style-normal typography--color-text-muted"
|
||||
>
|
||||
More coming soon...
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="settings-page__content-row"
|
||||
data-testid="advanced-setting-desktop-pairing"
|
||||
|
@ -252,8 +252,7 @@ export default class ExperimentalTab extends PureComponent {
|
||||
render() {
|
||||
return (
|
||||
<div className="settings-page__body">
|
||||
{process.env.TRANSACTION_SECURITY_PROVIDER &&
|
||||
this.renderTransactionSecurityCheckToggle()}
|
||||
{this.renderTransactionSecurityCheckToggle()}
|
||||
{process.env.NFTS_V1 && this.renderOpenSeaEnabledToggle()}
|
||||
{
|
||||
///: BEGIN:ONLY_INCLUDE_IN(desktop)
|
||||
|
@ -77,17 +77,6 @@ class SettingsPage extends PureComponent {
|
||||
searchText: '',
|
||||
};
|
||||
|
||||
shouldRenderExperimentalTab() {
|
||||
///: BEGIN:ONLY_INCLUDE_IN(desktop)
|
||||
const desktopAvailable = true;
|
||||
if (desktopAvailable) {
|
||||
return true;
|
||||
}
|
||||
///: END:ONLY_INCLUDE_IN
|
||||
|
||||
return process.env.TRANSACTION_SECURITY_PROVIDER || process.env.NFTS_V1;
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
this.handleConversionDate();
|
||||
}
|
||||
@ -311,21 +300,17 @@ class SettingsPage extends PureComponent {
|
||||
icon: <i className="fa fa-plug" />,
|
||||
key: NETWORKS_ROUTE,
|
||||
},
|
||||
];
|
||||
|
||||
if (this.shouldRenderExperimentalTab()) {
|
||||
tabs.push({
|
||||
{
|
||||
content: t('experimental'),
|
||||
icon: <i className="fa fa-flask" />,
|
||||
key: EXPERIMENTAL_ROUTE,
|
||||
});
|
||||
}
|
||||
|
||||
tabs.push({
|
||||
content: t('about'),
|
||||
icon: <i className="fa fa-info-circle" />,
|
||||
key: ABOUT_US_ROUTE,
|
||||
});
|
||||
},
|
||||
{
|
||||
content: t('about'),
|
||||
icon: <i className="fa fa-info-circle" />,
|
||||
key: ABOUT_US_ROUTE,
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<TabBar
|
||||
@ -373,9 +358,7 @@ class SettingsPage extends PureComponent {
|
||||
render={() => <AddNetwork />}
|
||||
/>
|
||||
<Route exact path={SECURITY_ROUTE} component={SecurityTab} />
|
||||
{this.shouldRenderExperimentalTab() ? (
|
||||
<Route exact path={EXPERIMENTAL_ROUTE} component={ExperimentalTab} />
|
||||
) : null}
|
||||
<Route exact path={EXPERIMENTAL_ROUTE} component={ExperimentalTab} />
|
||||
<Route exact path={CONTACT_LIST_ROUTE} component={ContactListTab} />
|
||||
<Route exact path={CONTACT_ADD_ROUTE} component={ContactListTab} />
|
||||
<Route
|
||||
|
Loading…
Reference in New Issue
Block a user