Progress update cleanup and UI improvements.
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
||||
View,
|
||||
} from "react-native";
|
||||
import ImageView from "react-native-image-viewing";
|
||||
import { ActivityIndicator } from "react-native-paper";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
import env from "../../env";
|
||||
@@ -119,6 +120,7 @@ export function JobDocumentsComponent({ bodyshop }) {
|
||||
getPhotos();
|
||||
}, [getPhotos]);
|
||||
|
||||
if (loading) return <ActivityIndicator style={{ flex: 1 }} size="large" />;
|
||||
if (error) {
|
||||
return <ErrorDisplay message={JSON.stringify(error)} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user