diff --git a/src/PimMain.tsx b/src/PimMain.tsx index 9c87e47..8488883 100644 --- a/src/PimMain.tsx +++ b/src/PimMain.tsx @@ -10,6 +10,9 @@ import { EventType, ContactType } from './pim-types'; import { routeResolver } from './App'; +const addressBookTitle = 'Address Book'; +const calendarTitle = 'Calendar'; + class Pim extends React.Component { props: { contacts: Array, @@ -17,8 +20,13 @@ class Pim extends React.Component { history?: any, }; + state: { + tab?: string; + }; + constructor(props: any) { super(props); + this.state = {}; this.eventClicked = this.eventClicked.bind(this); this.contactClicked = this.contactClicked.bind(this); } @@ -40,11 +48,20 @@ class Pim extends React.Component { render() { return ( - - + this.setState({tab: value})} + > + - +