import React, { PropTypes } from 'react' import { connect, Provider } from 'react-redux' import linkState from 'boost/linkState' import store from 'boost/store' import AppSettingTab from './Preference/AppSettingTab' import HelpTab from './Preference/HelpTab' import FolderSettingTab from './Preference/FolderSettingTab' import ContactTab from './Preference/ContactTab' import { closeModal } from 'boost/modal' const APP = 'APP' const HELP = 'HELP' const FOLDER = 'FOLDER' const CONTACT = 'CONTACT' class Preferences extends React.Component { constructor (props) { super(props) this.state = { currentTab: APP } } switchTeam (teamId) { this.setState({currentTeamId: teamId}) } handleNavButtonClick (tab) { return e => { this.setState({currentTab: tab}) } } render () { let content = this.renderContent() let tabs = [ {target: APP, label: 'Preferences'}, {target: FOLDER, label: 'Manage folder'}, {target: CONTACT, label: 'Contact form'} ] let navButtons = tabs.map(tab => ( )) return (