Skip to content

Commit

Permalink
Merge branch 'feat/receive-ui' into tmp/20241216
Browse files Browse the repository at this point in the history
  • Loading branch information
hz002 committed Dec 17, 2024
2 parents f760748 + 1ac1de8 commit 12bb94d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { RcIconAddCircle } from '@/assets/icons/address';
import { RootNames } from '@/constant/layout';
import { navigate } from '@/utils/navigation';
import { createGetStyles2024 } from '@/utils/styles';
import { BottomSheetHandlableView } from '@/components/customized/BottomSheetHandle';

const RcIconNotFind = makeThemeIconFromCC(RcIconNotFindCC, 'neutral-foot');
const RcIconSearch = makeThemeIconFromCC(RcIconSearchCC, 'neutral-foot');
Expand Down Expand Up @@ -144,26 +145,28 @@ export default function SelectSortedChain({

return (
<AutoLockView style={styles.container}>
{titleText && <Text style={styles.titleText}>{titleText}</Text>}
{isShowTestnet && !hideMainnetTab ? (
<NetSwitchTabs
value={selectedTab}
onTabChange={onTabChange}
style={styles.netSwitchTabs}
<BottomSheetHandlableView>
{titleText && <Text style={styles.titleText}>{titleText}</Text>}
{isShowTestnet && !hideMainnetTab ? (
<NetSwitchTabs
value={selectedTab}
onTabChange={onTabChange}
style={styles.netSwitchTabs}
/>
) : null}
<Input
leftIcon={<RcIconSearch color={colors2024['neutral-foot']} />}
containerStyle={[styles.containerOfInput, styles.innerBlock]}
inputContainerStyle={styles.inputContainerStyle}
style={styles.inputText}
placeholderTextColor={colors2024['neutral-info']}
placeholder="Search chain"
value={search}
onChangeText={text => {
setSearch(text);
}}
/>
) : null}
<Input
leftIcon={<RcIconSearch color={colors2024['neutral-foot']} />}
containerStyle={[styles.containerOfInput, styles.innerBlock]}
inputContainerStyle={styles.inputContainerStyle}
style={styles.inputText}
placeholderTextColor={colors2024['neutral-info']}
placeholder="Search chain"
value={search}
onChangeText={text => {
setSearch(text);
}}
/>
</BottomSheetHandlableView>

{matteredList.length === 0 && unmatteredList.length === 0 ? (
<View style={[styles.chainListWrapper, styles.emptyDataWrapper]}>
Expand Down Expand Up @@ -261,6 +264,8 @@ const getStyle = createGetStyles2024(({ colors2024 }) => ({
marginLeft: 7,
fontSize: 17,
fontWeight: '400',
paddingTop: 0,
paddingBottom: 0,
fontFamily: 'SF Pro Rounded',
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function ReceiveAddressListScreen(): JSX.Element {
const id = createGlobalBottomSheetModal2024({
name: MODAL_NAMES.SELECT_SORTED_CHAIN,
bottomSheetModalProps: {
enableContentPanningGesture: true,
enableContentPanningGesture: false,
enablePanDownToClose: true,
},
titleText: t('page.receiveAddressList.selectChainTitle'),
Expand Down
2 changes: 1 addition & 1 deletion apps/mobile/src/screens/Home/components/HomeTopArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export const HomeTopArea = () => {
name: MODAL_NAMES.SELECT_SORTED_CHAIN,
titleText: t('page.receiveAddressList.selectChainTitle'),
bottomSheetModalProps: {
enableContentPanningGesture: true,
enableContentPanningGesture: false,
enablePanDownToClose: true,
},
onChange: (v: CHAINS_ENUM) => {
Expand Down

0 comments on commit 12bb94d

Please sign in to comment.