diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-11-18 17:37:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-18 22:07:45 +0530 |
commit | b37a6b07b39c8c7827052dc6fb97f490f1e0f514 (patch) | |
tree | 0276e7c51f5ebfa14c566def7aac39f014c2291d /src/components | |
parent | Update github issues template [skip ci] (diff) | |
download | ferdium-app-b37a6b07b39c8c7827052dc6fb97f490f1e0f514.tar.gz ferdium-app-b37a6b07b39c8c7827052dc6fb97f490f1e0f514.tar.zst ferdium-app-b37a6b07b39c8c7827052dc6fb97f490f1e0f514.zip |
chore: convert various files to TS (#2246)
* convert various files to TS
* removed outdated docs/example-feature folder
* turn off unicorn/no-empty-file
* update eslint config
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/services/content/ServiceWebview.js | 12 | ||||
-rw-r--r-- | src/components/ui/Tabs/TabItem.tsx | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/components/services/content/ServiceWebview.js b/src/components/services/content/ServiceWebview.js index 187785f82..c70494edd 100644 --- a/src/components/services/content/ServiceWebview.js +++ b/src/components/services/content/ServiceWebview.js | |||
@@ -31,11 +31,13 @@ class ServiceWebview extends Component { | |||
31 | debug('Service logged a message:', e.message); | 31 | debug('Service logged a message:', e.message); |
32 | }); | 32 | }); |
33 | this.webview.view.addEventListener('did-navigate', () => { | 33 | this.webview.view.addEventListener('did-navigate', () => { |
34 | document.title = `Ferdi - ${this.props.service.name} ${ | 34 | if (this.props.service._webview) { |
35 | this.props.service.dialogTitle | 35 | document.title = `Ferdi - ${this.props.service.name} ${ |
36 | ? ` - ${this.props.service.dialogTitle}` | 36 | this.props.service.dialogTitle |
37 | : '' | 37 | ? ` - ${this.props.service.dialogTitle}` |
38 | } ${`- ${this.props.service._webview.getTitle()}`}`; | 38 | : '' |
39 | } ${`- ${this.props.service._webview.getTitle()}`}`; | ||
40 | } | ||
39 | }); | 41 | }); |
40 | } | 42 | } |
41 | }, | 43 | }, |
diff --git a/src/components/ui/Tabs/TabItem.tsx b/src/components/ui/Tabs/TabItem.tsx index 81ea0ea2b..9fcc3c41e 100644 --- a/src/components/ui/Tabs/TabItem.tsx +++ b/src/components/ui/Tabs/TabItem.tsx | |||
@@ -1,3 +1 @@ | |||
1 | export const TabItem = ({ children }) => { | export const TabItem = ({ children }) => <>{children}</>; | |
2 | children; | ||
3 | }; | ||