diff options
author | 2022-11-02 06:31:36 +0530 | |
---|---|---|
committer | 2022-11-02 01:01:36 +0000 | |
commit | 302d595f7c289387e53a0ef7df4d574ed4e25d70 (patch) | |
tree | 2385e59eaca9c78921d9b0b3681cfba1b3eef168 /src/features/basicAuth/store.ts | |
parent | Re-enable editing of the address bar to manually access a different url withi... (diff) | |
download | ferdium-app-302d595f7c289387e53a0ef7df4d574ed4e25d70.tar.gz ferdium-app-302d595f7c289387e53a0ef7df4d574ed4e25d70.tar.zst ferdium-app-302d595f7c289387e53a0ef7df4d574ed4e25d70.zip |
Transform to TS and refactored components w.r.t deletion if duplicated Input component (#729)
Diffstat (limited to 'src/features/basicAuth/store.ts')
-rw-r--r-- | src/features/basicAuth/store.ts | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/features/basicAuth/store.ts b/src/features/basicAuth/store.ts index e0ae8ba17..0fc289916 100644 --- a/src/features/basicAuth/store.ts +++ b/src/features/basicAuth/store.ts | |||
@@ -3,7 +3,17 @@ import { ipcRenderer } from 'electron'; | |||
3 | 3 | ||
4 | const debug = require('../../preload-safe-debug')('Ferdium:feature:basicAuth'); | 4 | const debug = require('../../preload-safe-debug')('Ferdium:feature:basicAuth'); |
5 | 5 | ||
6 | const defaultState = { | 6 | interface IAuthInfo { |
7 | host: string; | ||
8 | port: number; | ||
9 | } | ||
10 | interface IDefaultState { | ||
11 | isModalVisible: boolean; | ||
12 | service: null; | ||
13 | authInfo: IAuthInfo | null; | ||
14 | } | ||
15 | |||
16 | const defaultState: IDefaultState = { | ||
7 | isModalVisible: true, | 17 | isModalVisible: true, |
8 | service: null, | 18 | service: null, |
9 | authInfo: null, | 19 | authInfo: null, |