diff --git a/components/Tabs.js b/components/Tabs.js index 9057f20e..f86f0b70 100644 --- a/components/Tabs.js +++ b/components/Tabs.js @@ -27,34 +27,39 @@ const Tabs = ({ className, children }) => { if (count === 1) { return
- {children} -
+ {children} + } - function tabClickHandle (i) { + function tabClickHandle(i) { setCurrentTab(i) } return
- -
- {children.map((item, index) => { - return
- {currentTab === index && item} -
- })} + +
+ {children.map((item, index) => { + return
+ {currentTab === index && item} +
+ })} +
-
} export default Tabs