diff options
author | 2021-10-07 08:03:45 +0200 | |
---|---|---|
committer | 2021-10-07 08:03:45 +0200 | |
commit | 31f8ada876b3aec45ffffcf82079eaacb69349fc (patch) | |
tree | 9f5752b7bbc42c9b5b3c2b02517732b3a2e5b868 /src/components/ui/Tabs | |
parent | chore: simplify babel configuration (#2029) (diff) | |
download | ferdium-app-31f8ada876b3aec45ffffcf82079eaacb69349fc.tar.gz ferdium-app-31f8ada876b3aec45ffffcf82079eaacb69349fc.tar.zst ferdium-app-31f8ada876b3aec45ffffcf82079eaacb69349fc.zip |
chore: upgrade react to latest (#2030)
Diffstat (limited to 'src/components/ui/Tabs')
-rw-r--r-- | src/components/ui/Tabs/TabItem.tsx | 2 | ||||
-rw-r--r-- | src/components/ui/Tabs/Tabs.js | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/components/ui/Tabs/TabItem.tsx b/src/components/ui/Tabs/TabItem.tsx index bd613ddc7..9fcc3c41e 100644 --- a/src/components/ui/Tabs/TabItem.tsx +++ b/src/components/ui/Tabs/TabItem.tsx | |||
@@ -1,3 +1 @@ | |||
1 | import React from 'react'; | ||
2 | |||
3 | export const TabItem = ({ children }) => <>{children}</>; | export const TabItem = ({ children }) => <>{children}</>; | |
diff --git a/src/components/ui/Tabs/Tabs.js b/src/components/ui/Tabs/Tabs.js index 195398708..77803974b 100644 --- a/src/components/ui/Tabs/Tabs.js +++ b/src/components/ui/Tabs/Tabs.js | |||
@@ -1,4 +1,4 @@ | |||
1 | import React, { Component } from 'react'; | 1 | import { Children, Component } from 'react'; |
2 | import PropTypes from 'prop-types'; | 2 | import PropTypes from 'prop-types'; |
3 | import { observer } from 'mobx-react'; | 3 | import { observer } from 'mobx-react'; |
4 | import classnames from 'classnames'; | 4 | import classnames from 'classnames'; |
@@ -36,7 +36,7 @@ class Tab extends Component { | |||
36 | return ( | 36 | return ( |
37 | <div className="content-tabs"> | 37 | <div className="content-tabs"> |
38 | <div className="content-tabs__tabs"> | 38 | <div className="content-tabs__tabs"> |
39 | {React.Children.map(children, (child, i) => ( | 39 | {Children.map(children, (child, i) => ( |
40 | <button | 40 | <button |
41 | key="{i}" | 41 | key="{i}" |
42 | className={classnames({ | 42 | className={classnames({ |
@@ -51,7 +51,7 @@ class Tab extends Component { | |||
51 | ))} | 51 | ))} |
52 | </div> | 52 | </div> |
53 | <div className="content-tabs__content"> | 53 | <div className="content-tabs__content"> |
54 | {React.Children.map(children, (child, i) => ( | 54 | {Children.map(children, (child, i) => ( |
55 | <div | 55 | <div |
56 | key="{i}" | 56 | key="{i}" |
57 | className={classnames({ | 57 | className={classnames({ |