Skip to content

Commit

Permalink
feat(llm): add settings row for wallet sync
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasWerey committed Jun 10, 2024
1 parent 9edad05 commit 0d58a91
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/grumpy-dots-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"live-mobile": patch
---

Add setting row under feature flag for wallet sync
2 changes: 2 additions & 0 deletions apps/ledger-live-mobile/src/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -2723,6 +2723,8 @@
"languageDesc": "Set the language displayed in Ledger Live.",
"dateFormat": "Date format",
"dateFormatDesc": "Set the date format for Ledger Live",
"walletSync": "Ledger Sync",
"walletSyncDesc": "Backup your app data and seamlessly synchronize multiple Ledger Live instances",
"region": "Region",
"regionDesc": "Choose your region to update formats of dates, time and currencies.",
"password": "App lock",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from "react";
import SettingsRow from "~/components/SettingsRow";
import { useTranslation } from "react-i18next";

const WalletSyncRow = () => {
const { t } = useTranslation();

return (
<SettingsRow
event="WalletSyncSettingsRow"
title={t("settings.display.walletSync")}
desc={t("settings.display.walletSyncDesc")}
arrowRight
onPress={() => null}
testID="wallet-sync-button"
/>
);
};

export default WalletSyncRow;
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import LanguageRow from "./LanguageRow";
import SettingsNavigationScrollView from "../SettingsNavigationScrollView";
import DateFormatRow from "./DateFormatRow";
import PersonalizedRecommendationsRow from "./PersonalizedRecommendationsRow";
import WalletSyncRow from "./WalletSyncRow";
import { FeatureToggle } from "@ledgerhq/live-common/featureFlags/index";

export default function GeneralSettings() {
Expand All @@ -18,6 +19,9 @@ export default function GeneralSettings() {
<CountervalueSettingsRow />
<LanguageRow />
<DateFormatRow />
<FeatureToggle featureId="llmWalletSync">
<WalletSyncRow />
</FeatureToggle>
<ThemeSettingsRow />
<AuthSecurityToggle />
<ReportErrorsRow />
Expand Down

0 comments on commit 0d58a91

Please sign in to comment.