Skip to content

Commit

Permalink
chore(suite-native): move SettingsSection to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Lemonexe committed Jan 17, 2025
1 parent e13b21f commit cedad41
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@ import { useNavigation } from '@react-navigation/core';
import { useAtomValue } from 'jotai';

import {
SettingsStackRoutes,
RootStackParamList,
RootStackRoutes,
SettingsStackRoutes,
StackNavigationProps,
RootStackParamList,
} from '@suite-native/navigation';
import { FeatureFlag, useFeatureFlag } from '@suite-native/feature-flags';
import { Translation } from '@suite-native/intl';
import { selectHasDeviceDiscovery } from '@suite-common/wallet-core';
import { SettingsSection, SettingsSectionItem } from '@suite-native/settings';

import { useSettingsNavigateTo } from '../navigation/useSettingsNavigateTo';
import { SettingsSection } from './SettingsSection';
import { SettingsSectionItem } from './SettingsSectionItem';
import { isDevButtonVisibleAtom } from './ProductionDebug';

export const FeaturesSettings = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Translation } from '@suite-native/intl';
import { SettingsStackRoutes } from '@suite-native/navigation';
import { SettingsSection, SettingsSectionItem } from '@suite-native/settings';

import { useSettingsNavigateTo } from '../navigation/useSettingsNavigateTo';
import { SettingsSection } from './SettingsSection';
import { SettingsSectionItem } from './SettingsSectionItem';

export const PreferencesSettings = () => {
const navigateTo = useSettingsNavigateTo();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { SettingsStackRoutes } from '@suite-native/navigation';
import { TrezorSuiteLiteHeader } from '@suite-native/atoms';
import { Translation } from '@suite-native/intl';
import { SettingsSection, SettingsSectionItem } from '@suite-native/settings';

import { useSettingsNavigateTo } from '../navigation/useSettingsNavigateTo';
import { SettingsSection } from './SettingsSection';
import { SettingsSectionItem } from './SettingsSectionItem';

export const SupportSettings = () => {
const navigateTo = useSettingsNavigateTo();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { Screen, ScreenHeader } from '@suite-native/navigation';
import { VStack, Divider } from '@suite-native/atoms';
import { Divider, VStack } from '@suite-native/atoms';
import { useOpenLink } from '@suite-native/link';
import { useTranslate } from '@suite-native/intl';
import { SettingsSection, SettingsSectionItem } from '@suite-native/settings';

import { AboutUsBanners } from '../components/AboutUsBanners';
import { SettingsSection } from '../components/SettingsSection';
import { SettingsSectionItem } from '../components/SettingsSectionItem';
import { AppVersion } from '../components/AppVersion';

export const SettingsAboutUsScreen = () => {
Expand Down
7 changes: 6 additions & 1 deletion suite-native/settings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
"@reduxjs/toolkit": "1.9.5",
"@suite-common/suite-config": "workspace:*",
"@suite-common/wallet-config": "workspace:*",
"@trezor/connect": "workspace:*"
"@suite-native/atoms": "workspace:*",
"@suite-native/icons": "workspace:*",
"@trezor/connect": "workspace:*",
"@trezor/styles": "workspace:*",
"react": "18.2.0",
"react-native": "0.76.1"
}
}
2 changes: 2 additions & 0 deletions suite-native/settings/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export * from './settingsSlice';
export * from './components/SettingsSection';
export * from './components/SettingsSectionItem';
5 changes: 4 additions & 1 deletion suite-native/settings/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
{
"path": "../../suite-common/wallet-config"
},
{ "path": "../../packages/connect" }
{ "path": "../atoms" },
{ "path": "../icons" },
{ "path": "../../packages/connect" },
{ "path": "../../packages/styles" }
]
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11076,7 +11076,12 @@ __metadata:
"@reduxjs/toolkit": "npm:1.9.5"
"@suite-common/suite-config": "workspace:*"
"@suite-common/wallet-config": "workspace:*"
"@suite-native/atoms": "workspace:*"
"@suite-native/icons": "workspace:*"
"@trezor/connect": "workspace:*"
"@trezor/styles": "workspace:*"
react: "npm:18.2.0"
react-native: "npm:0.76.1"
languageName: unknown
linkType: soft

Expand Down

0 comments on commit cedad41

Please sign in to comment.