adding tabs for the convos and dark theme nice

This commit is contained in:
talksik
2022-04-01 16:26:42 -04:00
parent c9dd5255d9
commit e5a01cae42
4 changed files with 61 additions and 43 deletions
@@ -25,13 +25,18 @@ export default function ProtectedRoute({
.then((jwtToken: string) => {
if (jwtToken) {
NirvanaApi._jwtToken = jwtToken;
setJwtToken(jwtToken);
refetch();
console.log("retrieved jwtToken from storage", jwtToken);
} else {
console.log("no jwt token in store");
}
});
}, []);
useEffect(() => {
console.log("change in jwt token");
console.log("change in jwt token", jwtToken);
if (jwtToken) {
window.electronAPI.store.set(STORE_ITEMS.AUTH_SESSION_JWT, jwtToken);