618 Rename function to start import
This commit is contained in:
@@ -15,7 +15,7 @@ export default function ImportData({ resetIsDeletingData, setIsLoading }) {
|
|||||||
keyPrefix: 'hamburgerMenu.settings.data.import',
|
keyPrefix: 'hamburgerMenu.settings.data.import',
|
||||||
})
|
})
|
||||||
|
|
||||||
async function startImportFlow(shouldDeleteExistingData) {
|
async function startImport(shouldDeleteExistingData) {
|
||||||
setIsLoading(true)
|
setIsLoading(true)
|
||||||
await importData(shouldDeleteExistingData)
|
await importData(shouldDeleteExistingData)
|
||||||
setIsLoading(false)
|
setIsLoading(false)
|
||||||
@@ -67,11 +67,11 @@ export default function ImportData({ resetIsDeletingData, setIsLoading }) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: t('dialog.replace'),
|
text: t('dialog.replace'),
|
||||||
onPress: () => startImportFlow(false),
|
onPress: () => startImport(false),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: t('dialog.delete'),
|
text: t('dialog.delete'),
|
||||||
onPress: () => startImportFlow(true),
|
onPress: () => startImport(true),
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user