refactor: extract Editor components into modular files and implement PostSealModal

This commit is contained in:
ramvignesh-b
2026-04-24 16:32:01 +05:30
parent 2f3d5161ed
commit c562c99d3a
10 changed files with 341 additions and 326 deletions
+2 -6
View File
@@ -48,9 +48,7 @@ export const useAuth = () => {
try {
const masterKey = await loadMasterKey();
if (masterKey) setMasterKey(masterKey);
} catch {
console.error("Master key restoration failed");
}
} catch {}
// If session in memory, don't trigger refresh/me again
if (accessToken && user) {
@@ -82,9 +80,7 @@ export const useAuth = () => {
);
await saveMasterKey(masterKey);
setMasterKey(masterKey);
} catch {
console.error("Master key restoration failed");
}
} catch {}
};
return {