Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { FilterOption } from "@/lib/types"

import FindWalletLanguageSelectInput from "@/components/FindWalletProductTable/FindWalletLanguageSelectInput"
import Layer2SelectInput from "@/components/FindWalletProductTable/Layer2SelectInput"
// TODO: Re-enable when at least one privacy-enabled wallet has been listed
// import PrivacyIcon from "@/components/icons/privacy.svg"
import {
BrowserIcon,
BuyCryptoIcon,
Expand Down Expand Up @@ -874,6 +876,34 @@ export const useWalletFilters = (): FilterOption[] => {
},
options: [],
},
// TODO: Re-enable when at least one privacy-enabled wallet has been listed
// {
// filterKey: "privacy",
// filterLabel: t("page-find-wallet-privacy"),
// description: t("page-find-wallet-privacy-desc"),
// inputState: false,
// input: (filterIndex, itemIndex, inputState, updateFilterState) => {
// return (
// <SwitchFilterInput
// Icon={PrivacyIcon}
// label={t("page-find-wallet-privacy")}
// description={t("page-find-wallet-privacy-desc")}
// filterIndex={filterIndex}
// itemIndex={itemIndex}
// inputState={inputState}
// updateFilterState={(filterIndex, itemIndex, newInputState) => {
// trackCustomEvent({
// eventCategory: "WalletFilterSidebar",
// eventAction: `${t("page-find-wallet-privacy")}`,
// eventName: `privacy ${newInputState}`,
// })
// updateFilterState(filterIndex, itemIndex, newInputState)
// }}
// />
// )
// },
// options: [],
// },
],
},
{
Expand Down
5 changes: 5 additions & 0 deletions src/data/wallets/wallet-filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ const walletFilterData: { [key: string]: WalletFilterData } = {
description: "page-find-wallet-social-recovery-desc",
filterKey: "social_recovery",
},
privacy: {
title: "page-find-wallet-privacy",
description: "page-find-wallet-privacy-desc",
filterKey: "privacy",
},
}

export default walletFilterData
4 changes: 3 additions & 1 deletion src/intl/en/page-wallets-find-wallet.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,7 @@
"page-find-wallet-social-links": "Links",
"page-find-wallet-empty-results-title": "No results",
"page-find-wallet-empty-results-desc": "There are no wallets matching your criteria, try removing some filters.",
"page-find-wallet-see-wallets": "See wallets"
"page-find-wallet-see-wallets": "See wallets",
"page-find-wallet-privacy": "Privacy",
"page-find-wallet-privacy-desc": "Wallets that support built-in private transactions"
}
1 change: 1 addition & 0 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,7 @@ export type WalletData = {
documentation: string
mpc?: boolean
new_to_crypto?: boolean
privacy?: boolean
}

export type Wallet = WalletData & {
Expand Down