aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/basicAuth/store.ts
diff options
context:
space:
mode:
authorLibravatar muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com>2022-11-02 06:31:36 +0530
committerLibravatar GitHub <noreply@github.com>2022-11-02 01:01:36 +0000
commit302d595f7c289387e53a0ef7df4d574ed4e25d70 (patch)
tree2385e59eaca9c78921d9b0b3681cfba1b3eef168 /src/features/basicAuth/store.ts
parentRe-enable editing of the address bar to manually access a different url withi... (diff)
downloadferdium-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.ts12
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
4const debug = require('../../preload-safe-debug')('Ferdium:feature:basicAuth'); 4const debug = require('../../preload-safe-debug')('Ferdium:feature:basicAuth');
5 5
6const defaultState = { 6interface IAuthInfo {
7 host: string;
8 port: number;
9}
10interface IDefaultState {
11 isModalVisible: boolean;
12 service: null;
13 authInfo: IAuthInfo | null;
14}
15
16const defaultState: IDefaultState = {
7 isModalVisible: true, 17 isModalVisible: true,
8 service: null, 18 service: null,
9 authInfo: null, 19 authInfo: null,