habitica-sync/src/view/Components/Taskview/index.tsx

37 lines
1.4 KiB
TypeScript
Raw Normal View History

import * as React from "react";
import TodoItem from "./TodoItem"
2021-10-17 21:58:59 -07:00
import Taskview from "../Taskview"
import Dailiesview from "../Dailiesview"
import Habitsview from "../Habitsview"
import Todoview from "../Todoview"
import { Tab, Tabs, TabList, TabPanel } from "react-tabs";
export default function Index(props: any){
const display = <div id="classDisplay">
2021-10-17 21:58:59 -07:00
<Tabs>
<TabList>
<Tab>
<span className="material-icons md-24">task_alt</span>
</Tab>
<Tab>
<span className="material-icons">today</span>
</Tab>
<Tab>
<span className="material-icons">add_circle_outline</span>
</Tab>
</TabList>
<TabPanel>
<Habitsview habits={props.state.habits} onChange={props.handleChange} />
</TabPanel>
<TabPanel>
<Dailiesview dailys={props.state.dailys} onChange={props.handleChange} />
</TabPanel>
<TabPanel>
<Todoview todos={props.state.todos} onChange={props.handleChange} />
</TabPanel>
</Tabs>
</div>
return(display);
2021-10-17 21:58:59 -07:00
}