From b5f53465367e25d2f93d7134fca8629724169eef Mon Sep 17 00:00:00 2001 From: LandaMm Date: Sat, 24 May 2025 14:23:56 +0200 Subject: [PATCH] feat: connected field in context --- web/src/context/db/db.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/context/db/db.ts b/web/src/context/db/db.ts index 89957d8..7b986f5 100644 --- a/web/src/context/db/db.ts +++ b/web/src/context/db/db.ts @@ -3,11 +3,13 @@ import { createContext, useContext } from "react"; interface DbContextValues { db: IDBPDatabase | null; + connected: boolean; setDb: (db: IDBPDatabase) => void; } export const DbContext = createContext({ db: null, + connected: false, setDb: () => {}, });