remove test id from mediaAutoDownloadView
This commit is contained in:
parent
8ed68eff9e
commit
5b57b35d16
|
@ -38,11 +38,9 @@ interface IBaseParams {
|
|||
const ListPicker = ({
|
||||
value,
|
||||
title,
|
||||
testID,
|
||||
onChangeValue
|
||||
}: {
|
||||
title: string;
|
||||
testID: string;
|
||||
} & IBaseParams) => {
|
||||
const { showActionSheet, hideActionSheet } = useActionSheet();
|
||||
const { colors } = useTheme();
|
||||
|
@ -61,7 +59,6 @@ const ListPicker = ({
|
|||
return (
|
||||
<List.Item
|
||||
title={title}
|
||||
testID={testID}
|
||||
onPress={() => showActionSheet({ options: getOptions() })}
|
||||
right={() => (
|
||||
<Text style={[styles.title, { color: colors.actionTintColor }]}>
|
||||
|
|
|
@ -32,30 +32,15 @@ const MediaAutoDownload = () => {
|
|||
}, [navigation]);
|
||||
|
||||
return (
|
||||
<SafeAreaView testID='media-auto-download-view'>
|
||||
<SafeAreaView>
|
||||
<StatusBar />
|
||||
<List.Container testID='media-auto-download-view-list'>
|
||||
<List.Container>
|
||||
<List.Section>
|
||||
<ListPicker
|
||||
onChangeValue={setImagesPreference}
|
||||
value={imagesPreference}
|
||||
title='Images'
|
||||
testID='media-auto-download-view-images'
|
||||
/>
|
||||
<ListPicker onChangeValue={setImagesPreference} value={imagesPreference} title='Images' />
|
||||
<List.Separator />
|
||||
<ListPicker
|
||||
onChangeValue={setVideoPreference}
|
||||
value={videoPreference}
|
||||
title='Video'
|
||||
testID='media-auto-download-view-video'
|
||||
/>
|
||||
<ListPicker onChangeValue={setVideoPreference} value={videoPreference} title='Video' />
|
||||
<List.Separator />
|
||||
<ListPicker
|
||||
onChangeValue={setAudioPreference}
|
||||
value={audioPreference}
|
||||
title='Audio'
|
||||
testID='media-auto-download-view-audio'
|
||||
/>
|
||||
<ListPicker onChangeValue={setAudioPreference} value={audioPreference} title='Audio' />
|
||||
</List.Section>
|
||||
</List.Container>
|
||||
</SafeAreaView>
|
||||
|
|
Loading…
Reference in New Issue