remove test id from mediaAutoDownloadView

This commit is contained in:
Reinaldo Neto 2023-07-05 15:23:50 -03:00
parent 8ed68eff9e
commit 5b57b35d16
2 changed files with 5 additions and 23 deletions

View File

@ -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 }]}>

View File

@ -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>