mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-22 15:09:43 +00:00
移除Preact框架、引入react-hook检查
This commit is contained in:
@@ -6,6 +6,8 @@ import React, { useState } from 'react'
|
||||
* @returns
|
||||
*/
|
||||
const Tabs = ({ className, children }) => {
|
||||
const [currentTab, setCurrentTab] = useState(0)
|
||||
|
||||
if (!children) {
|
||||
return <></>
|
||||
}
|
||||
@@ -29,8 +31,6 @@ const Tabs = ({ className, children }) => {
|
||||
</section>
|
||||
}
|
||||
|
||||
const [currentTab, setCurrentTab] = useState(0)
|
||||
|
||||
function tabClickHandle (i) {
|
||||
setCurrentTab(i)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user