618 Rename function to start import

This commit is contained in:
Lisa Hillebrand
2022-10-14 12:08:16 +02:00
parent bcc8ebd7e2
commit d77cb17f1d
@@ -15,7 +15,7 @@ export default function ImportData({ resetIsDeletingData, setIsLoading }) {
keyPrefix: 'hamburgerMenu.settings.data.import',
})
async function startImportFlow(shouldDeleteExistingData) {
async function startImport(shouldDeleteExistingData) {
setIsLoading(true)
await importData(shouldDeleteExistingData)
setIsLoading(false)
@@ -67,11 +67,11 @@ export default function ImportData({ resetIsDeletingData, setIsLoading }) {
},
{
text: t('dialog.replace'),
onPress: () => startImportFlow(false),
onPress: () => startImport(false),
},
{
text: t('dialog.delete'),
onPress: () => startImportFlow(true),
onPress: () => startImport(true),
},
])
}