diff --git a/src/app.ts b/src/app.ts
index 77e4cf7c..5e6cc0bc 100644
--- a/src/app.ts
+++ b/src/app.ts
@@ -6,6 +6,7 @@ import {
getTransactions,
getAccounts,
getCurrentLocation,
+ getCurrentTabStatus,
} from "./redux/selectors";
import {
navigateToTabs,
@@ -38,6 +39,9 @@ function mapStateToProps(state: AllState) {
currentLocation: getCurrentLocation(state),
initialLoadingDone: state.app.initialLoadingDone,
tabInfo: getTabInfo(state),
+ currentTabLastSyncedSucessfully:
+ getCurrentTabStatus(state)?.lastSyncedSuccessfully,
+ currentTabSyncError: getCurrentTabStatus(state)?.syncError,
transaction: state.app.docsById[
state.location.payload.transactionId
] as Transaction,
diff --git a/src/components/__snapshots__/main.test.tsx.snap b/src/components/__snapshots__/main.test.tsx.snap
index be372e87..36cd34de 100644
--- a/src/components/__snapshots__/main.test.tsx.snap
+++ b/src/components/__snapshots__/main.test.tsx.snap
@@ -5,28 +5,64 @@ exports[`renders empty view with no tab selected 1`] = `
className="scene mainScene"
>
-
-
-
+
+
+
+
+
+
+
+ Not synced, yet
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+ Not synced, yet
+
+
+
+
+
-
-
- My Tab
-
-
+
+
+
+ My Tab
+
+
+
+
+
+ Not synced, yet
+
+
+
+
+
-
-
- My Tab
-
-
+
+
+
+ My Tab
+
+
+
+
+
+ Not synced, yet
+
+
+
+
+
{
/>
= (props) => {
};
const renderHeader = (showAddButton?: boolean) => (
-
-
-
{props.tabInfo?.name || ""}
- {showAddButton && (
-