Skip to content

Commit e5b69ac

Browse files
committed
chore: lint errors
1 parent e3a7f22 commit e5b69ac

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

examples/sync-demo-bare/src/App.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,13 @@ import {
4545
*/
4646
function TestApp() {
4747
const { writeDb, initError } = useSqliteDb();
48-
const { isSyncReady, isSyncing, lastSyncTime, syncError, currentSyncInterval } = useSyncStatus();
48+
const {
49+
isSyncReady,
50+
isSyncing,
51+
lastSyncTime,
52+
syncError,
53+
currentSyncInterval,
54+
} = useSyncStatus();
4955
const [nextSyncIn, setNextSyncIn] = useState<number | null>(null);
5056

5157
useEffect(() => {
@@ -57,7 +63,7 @@ function TestApp() {
5763
const update = () => {
5864
const remaining = Math.max(
5965
0,
60-
Math.ceil((lastSyncTime + currentSyncInterval - Date.now()) / 1000)
66+
Math.ceil((lastSyncTime + currentSyncInterval - Date.now()) / 1000),
6167
);
6268
setNextSyncIn(remaining);
6369
};
@@ -172,9 +178,7 @@ function TestApp() {
172178
</Text>
173179
)}
174180
{nextSyncIn != null && (
175-
<Text style={styles.status}>
176-
Next sync in {nextSyncIn}s
177-
</Text>
181+
<Text style={styles.status}>Next sync in {nextSyncIn}s</Text>
178182
)}
179183
</View>
180184

examples/sync-demo-expo/src/App.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,13 @@ registerBackgroundSyncCallback(
8686
*/
8787
function TestApp({ deviceToken }: { deviceToken: string | null }) {
8888
const { writeDb, initError } = useSqliteDb();
89-
const { isSyncReady, isSyncing, lastSyncTime, syncError, currentSyncInterval } = useSyncStatus();
89+
const {
90+
isSyncReady,
91+
isSyncing,
92+
lastSyncTime,
93+
syncError,
94+
currentSyncInterval,
95+
} = useSyncStatus();
9096
const [nextSyncIn, setNextSyncIn] = useState<number | null>(null);
9197

9298
useEffect(() => {
@@ -227,9 +233,7 @@ function TestApp({ deviceToken }: { deviceToken: string | null }) {
227233
</Text>
228234
)}
229235
{nextSyncIn != null && (
230-
<Text style={styles.status}>
231-
Next sync in {nextSyncIn}s
232-
</Text>
236+
<Text style={styles.status}>Next sync in {nextSyncIn}s</Text>
233237
)}
234238
</View>
235239

0 commit comments

Comments
 (0)