Rename methods
This commit is contained in:
@@ -16,16 +16,15 @@ export default class DataManagement extends Component {
|
|||||||
this.state = { isLoading: false }
|
this.state = { isLoading: false }
|
||||||
}
|
}
|
||||||
|
|
||||||
onStartLoading = () => {
|
startLoading = () => {
|
||||||
this.setState({ isLoading: true })
|
this.setState({ isLoading: true })
|
||||||
}
|
}
|
||||||
|
|
||||||
onEndLoading = () => {
|
endLoading = () => {
|
||||||
this.setState({ isLoading: false })
|
this.setState({ isLoading: false })
|
||||||
}
|
}
|
||||||
|
|
||||||
onImportData = async (shouldDeleteExistingData) => {
|
startImportFlow = async (shouldDeleteExistingData) => {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.onStartLoading()
|
this.onStartLoading()
|
||||||
const fileContent = await getFileContent()
|
const fileContent = await getFileContent()
|
||||||
|
|||||||
Reference in New Issue
Block a user