Commit be6553f0 by tungnq

TODO: Refactor TabBarView

parent 3db2ac7d
...@@ -14,12 +14,9 @@ const ListWorkView = (props) => { ...@@ -14,12 +14,9 @@ const ListWorkView = (props) => {
const handleFilterChange = (item) => { const handleFilterChange = (item) => {
console.log(item); console.log(item);
}; };
return (
<View const renderTabView = () => {
style={styles.container}> return ( <TabViewComponent
<Header title={'Danh sách công việc'} isBack />
<View style = {styles.body}>
<TabViewComponent
data={[ data={[
{key: 'all', label: 'Tất cả'}, {key: 'all', label: 'Tất cả'},
{key: 'public', label: 'Công khai'}, {key: 'public', label: 'Công khai'},
...@@ -55,7 +52,16 @@ const ListWorkView = (props) => { ...@@ -55,7 +52,16 @@ const ListWorkView = (props) => {
showActiveIndicator={false} showActiveIndicator={false}
onFilterChange={handleFilterChange} onFilterChange={handleFilterChange}
/> />
)
}
return (
<View
style={styles.container}>
<Header title={'Danh sách công việc'} isBack />
<View style = {styles.body}>
{renderTabView()}
</View> </View>
<FAB> <FAB>
<SubButton <SubButton
......
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