Skip to content

Commit

Permalink
feat: move ui component list to settings screen so it's out of the way
Browse files Browse the repository at this point in the history
  • Loading branch information
tm-ruxandra committed Dec 27, 2024
1 parent cd95fc7 commit ce2643b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions dev-client/src/screens/ScreenScaffold.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {SafeAreaView, useSafeAreaInsets} from 'react-native-safe-area-context';
import {Box, Column} from 'terraso-mobile-client/components/NativeBaseAdapters';
import {RestrictByFlag} from 'terraso-mobile-client/components/restrictions/RestrictByFlag';
import {SyncContent} from 'terraso-mobile-client/components/SyncContent';
import {UiComponentList} from 'terraso-mobile-client/components/util/UiComponentList';
import {useHeaderHeight} from 'terraso-mobile-client/hooks/useHeaderHeight';
import {AppBar} from 'terraso-mobile-client/navigation/components/AppBar';
import {theme} from 'terraso-mobile-client/theme';
Expand Down Expand Up @@ -67,7 +66,6 @@ export const ScreenScaffold = ({
<Column backgroundColor="primary.contrast" flex={1}>
<View onLayout={onLayout}>{PropsAppBar}</View>
<RestrictByFlag flag="FF_testing">
<UiComponentList />
<SyncContent />
</RestrictByFlag>
<Box flex={1}>{children}</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
import {FeatureFlagControlPanel} from 'terraso-mobile-client/components/FeatureFlagControl';
import {MenuList} from 'terraso-mobile-client/components/menus/MenuList';
import {Column} from 'terraso-mobile-client/components/NativeBaseAdapters';
import {RestrictByFlag} from 'terraso-mobile-client/components/restrictions/RestrictByFlag';
import {UiComponentList} from 'terraso-mobile-client/components/util/UiComponentList';
import {AppBar} from 'terraso-mobile-client/navigation/components/AppBar';
import {ScreenScaffold} from 'terraso-mobile-client/screens/ScreenScaffold';
import {DeleteAccountItem} from 'terraso-mobile-client/screens/UserSettingsScreen/components/menu/DeleteAccountItem';
Expand All @@ -28,6 +30,9 @@ import {VersionIndicator} from 'terraso-mobile-client/screens/UserSettingsScreen
export function UserSettingsScreen() {
return (
<ScreenScaffold AppBar={<AppBar LeftButton={null} RightButton={null} />}>
<RestrictByFlag flag="FF_testing">
<UiComponentList />
</RestrictByFlag>
<Column margin="12px">
<UserIndicator />
<MenuList>
Expand Down

0 comments on commit ce2643b

Please sign in to comment.