diff options
author | muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com> | 2022-10-25 12:51:28 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-25 07:21:28 +0000 |
commit | f79727a8632490f11c1423773fdd6adfb6337a7b (patch) | |
tree | a80943f4e4e571359c8104341a3957f6e763dce4 /src/features/publishDebugInfo/index.ts | |
parent | add balajiv113 as a contributor for code (#701) [skip ci] (diff) | |
download | ferdium-app-f79727a8632490f11c1423773fdd6adfb6337a7b.tar.gz ferdium-app-f79727a8632490f11c1423773fdd6adfb6337a7b.tar.zst ferdium-app-f79727a8632490f11c1423773fdd6adfb6337a7b.zip |
Transform 'AuthLayoutContainer' component hierarchy to tsx (#699)
Co-authored-by: Muhamed <>
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'src/features/publishDebugInfo/index.ts')
-rw-r--r-- | src/features/publishDebugInfo/index.ts | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/features/publishDebugInfo/index.ts b/src/features/publishDebugInfo/index.ts index 80714a104..cbbdbc594 100644 --- a/src/features/publishDebugInfo/index.ts +++ b/src/features/publishDebugInfo/index.ts | |||
@@ -1,21 +1,17 @@ | |||
1 | import { state as ModalState } from './store'; | 1 | import { state } from './store'; |
2 | 2 | ||
3 | export { default as Component } from './Component'; | 3 | export { default as Component } from './Component'; |
4 | 4 | ||
5 | const state = ModalState; | ||
6 | const debug = require('../../preload-safe-debug')( | 5 | const debug = require('../../preload-safe-debug')( |
7 | 'Ferdium:feature:publishDebugInfo', | 6 | 'Ferdium:feature:publishDebugInfo', |
8 | ); | 7 | ); |
9 | 8 | ||
10 | export default function initialize() { | 9 | export default function initialize(): void { |
11 | debug('Initialize publishDebugInfo feature'); | 10 | debug('Initialize publishDebugInfo feature'); |
12 | 11 | ||
13 | function showModal() { | 12 | const showModal = (): void => { |
14 | state.isModalVisible = true; | 13 | state.isModalVisible = true; |
15 | } | ||
16 | |||
17 | window['ferdium'].features.publishDebugInfo = { | ||
18 | state, | ||
19 | showModal, | ||
20 | }; | 14 | }; |
15 | |||
16 | window['ferdium'].features.publishDebugInfo = { state, showModal }; | ||
21 | } | 17 | } |