Skip to content

Commit

Permalink
feat: add BTC support survey link
Browse files Browse the repository at this point in the history
  • Loading branch information
gantunesr committed Jul 16, 2024
1 parent 20f54db commit e7ac268
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/_locales/en/messages.json

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

4 changes: 4 additions & 0 deletions shared/constants/urls.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
export enum BaseUrl {
Portfolio = 'https://portfolio.metamask.io',
}

export enum SurveyUrl {
BtcSupport = 'https://www.getfeedback.com/r/yG6FbiW5',
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ import {
///: END:ONLY_INCLUDE_IF
} from '../../../helpers/constants/design-system';

///: BEGIN:ONLY_INCLUDE_IF(build-flask)
import { SurveyUrl } from '../../../../shared/constants/urls';
///: END:ONLY_INCLUDE_IF

type ExperimentalTabProps = {
bitcoinSupportEnabled: boolean;
setBitcoinSupportEnabled: (value: boolean) => void;
Expand Down Expand Up @@ -263,7 +267,16 @@ export default class ExperimentalTab extends PureComponent<ExperimentalTabProps>
</Text>
{this.renderToggleSection({
title: t('bitcoinSupportToggleTitle'),
description: t('bitcoinSupportToggleDescription'),
description: t('bitcoinSupportToggleDescription', [
<a
key="btc-account-feedback-form__link-text"
href={SurveyUrl.BtcSupport}
target="_blank"
rel="noopener noreferrer"
>
{t('form')}
</a>,
]),
toggleValue: bitcoinSupportEnabled,
toggleCallback: (value) => {
trackEvent({
Expand Down

0 comments on commit e7ac268

Please sign in to comment.