Commit 3191bbad authored by huanglu's avatar huanglu

fix: update

parent bab4259c
...@@ -8,17 +8,17 @@ type TabListViewChilrenProps = { ...@@ -8,17 +8,17 @@ type TabListViewChilrenProps = {
children: JSX.Element children: JSX.Element
} }
type TabListViewProps = {
children: JSX.Element,
style: React.CSSProperties
}
const TabListItem = (props: TabListViewChilrenProps) => { const TabListItem = (props: TabListViewChilrenProps) => {
return <> return <>
{ props.children } { props.children }
</> </>
} }
type TabListViewProps = {
children: JSX.Element | JSX.Element[],
style: React.CSSProperties
}
const TabListView = (props: TabListViewProps) => { const TabListView = (props: TabListViewProps) => {
return ( return (
......
...@@ -16,8 +16,6 @@ import { PageProps } from 'global'; ...@@ -16,8 +16,6 @@ import { PageProps } from 'global';
const { RefreshListState } = RefreshListView const { RefreshListState } = RefreshListView
const Home = (props: PageProps) => { const Home = (props: PageProps) => {
useHeaderShow(true)
const [list, setList] = useState([1,2,3]) const [list, setList] = useState([1,2,3])
const [refreshState, setRefreshState] = useState(RefreshListState.Idle) const [refreshState, setRefreshState] = useState(RefreshListState.Idle)
const navigation = useNavigation() const navigation = useNavigation()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment