Skip to content

Commit

Permalink
Merge dbc525e into 101697b
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-schrammel authored Oct 16, 2024
2 parents 101697b + dbc525e commit b54aa94
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ export const TokenToBuyList = () => {

return (
<Box style={{ height: EXPANDED_INPUT_HEIGHT - 77, width: DEVICE_WIDTH - 24 }} testID={'token-to-buy-list'}>
<ChainSelection output />
<FlatList
keyboardShouldPersistTaps="always"
ListEmptyComponent={<ListEmpty output />}
ListFooterComponent={<Animated.View style={[animatedListPadding, { width: '100%' }]} />}
ListHeaderComponent={<ChainSelection output />}
contentContainerStyle={{ paddingBottom: 16 }}
data={sections}
getItemLayout={getItemLayout}
Expand Down
46 changes: 24 additions & 22 deletions src/__swaps__/screens/Swap/components/TokenList/TokenToSellList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,27 +86,29 @@ const TokenToSellListComponent = () => {
});

return (
<FlatList
ListEmptyComponent={<ListEmpty />}
ListFooterComponent={<Animated.View style={[animatedListPadding, { width: '100%' }]} />}
ListHeaderComponent={<ChainSelection allText={i18n.t(i18n.l.exchange.all_networks)} output={false} />}
contentContainerStyle={{ paddingBottom: 16 }}
data={userAssetIds}
getItemLayout={getItemLayout}
keyExtractor={uniqueId => uniqueId}
renderItem={({ item: uniqueId }) => {
return <CoinRow onPress={(asset: ParsedSearchAsset | null) => handleSelectToken(asset)} output={false} uniqueId={uniqueId} />;
}}
renderScrollComponent={props => {
return (
<Animated.ScrollView
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
animatedProps={animatedListProps}
/>
);
}}
style={{ height: EXPANDED_INPUT_HEIGHT - 77, width: DEVICE_WIDTH - 24 }}
/>
<>
<ChainSelection allText={i18n.t(i18n.l.exchange.all_networks)} output={false} />
<FlatList
ListEmptyComponent={<ListEmpty />}
ListFooterComponent={<Animated.View style={[animatedListPadding, { width: '100%' }]} />}
contentContainerStyle={{ paddingBottom: 16 }}
data={userAssetIds}
getItemLayout={getItemLayout}
keyExtractor={uniqueId => uniqueId}
renderItem={({ item: uniqueId }) => {
return <CoinRow onPress={(asset: ParsedSearchAsset | null) => handleSelectToken(asset)} output={false} uniqueId={uniqueId} />;
}}
renderScrollComponent={props => {
return (
<Animated.ScrollView
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
animatedProps={animatedListProps}
/>
);
}}
style={{ height: EXPANDED_INPUT_HEIGHT - 77, width: DEVICE_WIDTH - 24 }}
/>
</>
);
};

0 comments on commit b54aa94

Please sign in to comment.