diff options
author | 2021-10-02 09:24:32 +0200 | |
---|---|---|
committer | 2021-10-02 09:24:32 +0200 | |
commit | bfe8847d72cd0893230f2e654242658214943e61 (patch) | |
tree | 3384b02ebad7a74cbb106ddd95546e0e24ff0bb8 /src/components/ui/Tabs | |
parent | fix: Fix navigation shortcut accelerator for non-macos (fixes #1172) (#2012) (diff) | |
download | ferdium-app-bfe8847d72cd0893230f2e654242658214943e61.tar.gz ferdium-app-bfe8847d72cd0893230f2e654242658214943e61.tar.zst ferdium-app-bfe8847d72cd0893230f2e654242658214943e61.zip |
chore: convert various files from JS to TS (#2010)
Diffstat (limited to 'src/components/ui/Tabs')
-rw-r--r-- | src/components/ui/Tabs/TabItem.js | 15 | ||||
-rw-r--r-- | src/components/ui/Tabs/TabItem.tsx | 3 | ||||
-rw-r--r-- | src/components/ui/Tabs/index.js | 6 |
3 files changed, 3 insertions, 21 deletions
diff --git a/src/components/ui/Tabs/TabItem.js b/src/components/ui/Tabs/TabItem.js deleted file mode 100644 index d0ef4e798..000000000 --- a/src/components/ui/Tabs/TabItem.js +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | import React, { Component } from 'react'; | ||
2 | |||
3 | import { oneOrManyChildElements } from '../../../prop-types'; | ||
4 | |||
5 | export default class TabItem extends Component { | ||
6 | static propTypes = { | ||
7 | children: oneOrManyChildElements.isRequired, | ||
8 | }; | ||
9 | |||
10 | render() { | ||
11 | const { children } = this.props; | ||
12 | |||
13 | return <>{children}</>; | ||
14 | } | ||
15 | } | ||
diff --git a/src/components/ui/Tabs/TabItem.tsx b/src/components/ui/Tabs/TabItem.tsx new file mode 100644 index 000000000..bd613ddc7 --- /dev/null +++ b/src/components/ui/Tabs/TabItem.tsx | |||
@@ -0,0 +1,3 @@ | |||
1 | import React from 'react'; | ||
2 | |||
3 | export const TabItem = ({ children }) => <>{children}</>; | ||
diff --git a/src/components/ui/Tabs/index.js b/src/components/ui/Tabs/index.js deleted file mode 100644 index e4adb62c7..000000000 --- a/src/components/ui/Tabs/index.js +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | import Tabs from './Tabs'; | ||
2 | import TabItem from './TabItem'; | ||
3 | |||
4 | export default Tabs; | ||
5 | |||
6 | export { TabItem }; | ||