Skip to content

Commit

Permalink
remove scrollview
Browse files Browse the repository at this point in the history
  • Loading branch information
twilight2294 authored Mar 9, 2025
1 parent 0005bab commit 1c23cb8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
14 changes: 3 additions & 11 deletions src/components/EmptyStateComponent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {View} from 'react-native';
import Button from '@components/Button';
import ImageSVG from '@components/ImageSVG';
import Lottie from '@components/Lottie';
import ScrollView from '@components/ScrollView';
import Text from '@components/Text';
import VideoPlayer from '@components/VideoPlayer';
import useResponsiveLayout from '@hooks/useResponsiveLayout';
Expand All @@ -27,9 +26,7 @@ function EmptyStateComponent({
headerStyles,
headerContentStyles,
lottieWebViewStyles,
showsVerticalScrollIndicator,
minModalHeight = 400,
shouldEnableScroll = true,
}: EmptyStateComponentProps) {
const styles = useThemeStyles();
const [videoAspectRatio, setVideoAspectRatio] = useState(VIDEO_ASPECT_RATIO);
Expand Down Expand Up @@ -85,13 +82,8 @@ function EmptyStateComponent({
}, [headerMedia, headerMediaType, headerContentStyles, videoAspectRatio, styles.emptyStateVideo, lottieWebViewStyles]);

return (
<ScrollView
showsVerticalScrollIndicator={showsVerticalScrollIndicator}
scrollEnabled={shouldEnableScroll}
contentContainerStyle={[{minHeight: minModalHeight}, styles.flexGrow1, styles.flexShrink0, containerStyles]}
style={styles.flex1}
>
<View style={[styles.skeletonBackground, styles.overflowHidden]}>
<View style={[{minHeight: minModalHeight}, styles.flexGrow1, styles.flexShrink0, containerStyles]}>
<View style={styles.skeletonBackground}>
<SkeletonComponent
gradientOpacityEnabled
shouldAnimate={false}
Expand Down Expand Up @@ -125,7 +117,7 @@ function EmptyStateComponent({
</View>
</View>
</View>
</ScrollView>
</View>
);
}

Expand Down
1 change: 0 additions & 1 deletion src/components/EmptyStateComponent/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ type SharedProps<T> = {
lottieWebViewStyles?: React.CSSProperties | undefined;
minModalHeight?: number;
showsVerticalScrollIndicator?: boolean;
shouldEnableScroll?: boolean;
};

type MediaType<HeaderMedia, T extends MediaTypes> = SharedProps<T> & {
Expand Down
1 change: 0 additions & 1 deletion src/pages/workspace/expensifyCard/EmptyCardView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ function EmptyCardView({isBankAccountVerified}: EmptyCardViewProps) {
subtitle={translate(`workspace.expensifyCard.${isBankAccountVerified ? 'getStartedIssuing' : 'verifyingTheDetails'}`)}
headerContentStyles={isBankAccountVerified ? null : styles.pendingStateCardIllustration}
minModalHeight={isBankAccountVerified ? 500 : 400}
shouldEnableScroll={false}
/>
</View>
<Text style={[styles.textMicroSupporting, styles.m5]}>{translate('workspace.expensifyCard.disclaimer')}</Text>
Expand Down

0 comments on commit 1c23cb8

Please sign in to comment.