refactor(ext/popup): extract Login to types/login.ts on shared helpers

This commit is contained in:
adlee-was-taken
2026-04-23 21:57:53 -04:00
parent 24a99ba07a
commit 11c274053b
4 changed files with 324 additions and 628 deletions

View File

@@ -38,6 +38,7 @@ export interface PopupState {
// to the content script. See router/popup-only.ts#handleFillCredentials.
capturedTabId: number | null;
capturedUrl: string;
newType: import('../shared/types').ItemType | null;
}
let currentState: PopupState = {
@@ -52,6 +53,7 @@ let currentState: PopupState = {
loading: false,
capturedTabId: null,
capturedUrl: '',
newType: null,
};
export function getState(): PopupState {