diff --git a/browser/components/BoardShowPage/MenuSideBar/LabelsPane.js b/browser/components/BoardShowPage/MenuSideBar/LabelsPane.js
new file mode 100644
index 00000000..93161d47
--- /dev/null
+++ b/browser/components/BoardShowPage/MenuSideBar/LabelsPane.js
@@ -0,0 +1,79 @@
+import React, { Component } from 'react'
+import SearchBar from './SearchBar'
+import Pane from './index'
+
+
+export default class LabelsPane extends Component {
+
+ static PropTypes = {
+ board: React.PropTypes.object.isRequired,
+ onClose: React.PropTypes.func.isRequired,
+
+ }
+
+ constructor(props){
+ super(props)
+ this.state = {
+ display: 'Cards',
+ value: ''
+ }
+ this.setSearchTerm = this.setSearchTerm.bind(this)
+ this.toggleDisplay = this.toggleDisplay.bind(this)
+ this.goToPane = this.goToPane.bind(this)
+ this.goBack = this.goBack.bind(this)
+
+
+ }
+
+ setSearchTerm(event){
+ const value = event.target.value
+ this.setState({value: value})
+ }
+
+ goToPane(pane) {
+ if (!(pane in this.props.panes))
+ throw new Error(`cannot go to pane ${pane} it was not defined in panes prop`)
+ return event => {
+ if (event) event.preventDefault()
+ this.setState({
+ pane: pane
+ })
+ }
+ }
+
+ goBack(){
+ //TODO: this needs to go back to the More Pane; look above
+ this.props.goToPane('Main Label Pane')()
+ }
+
+ render(){
+ const { board } = this.props
+ // TODO: component for displaying search results
+ return(
+
+ )
+ }
+}
+// const LabelsPane = ({board, onClose, gotoPane, goBack}) =>
+//
+// Labels Panel
+//
+//
+module.exports = LabelsPane
diff --git a/browser/components/BoardShowPage/MenuSideBar/SearchBar.js b/browser/components/BoardShowPage/MenuSideBar/SearchBar.js
new file mode 100644
index 00000000..58631642
--- /dev/null
+++ b/browser/components/BoardShowPage/MenuSideBar/SearchBar.js
@@ -0,0 +1,24 @@
+import React, { Component } from 'react'
+// take search bar contents from unarchive
+// make a component in this file
+// check that the content rendered is correct
+// set props to the state
+// export
+// replace search contents with search bar
+// test
+
+
+const SearchBar = ( props ) => {
+ // TODO: create HTML class for search bar
+ return
+
+
+}
+
+module.exports = SearchBar
diff --git a/browser/components/BoardShowPage/MenuSideBar/Unarchive.js b/browser/components/BoardShowPage/MenuSideBar/Unarchive.js
index 9ef55388..5c777b96 100644
--- a/browser/components/BoardShowPage/MenuSideBar/Unarchive.js
+++ b/browser/components/BoardShowPage/MenuSideBar/Unarchive.js
@@ -7,6 +7,7 @@ import ConfirmationLink from '../../ConfirmationLink'
import Icon from '../../Icon'
import Button from '../../Button'
import commands from '../../../commands'
+import SearchBar from './SearchBar'
export default class Unarchive extends Component {
@@ -18,16 +19,16 @@ export default class Unarchive extends Component {
constructor(props){
super(props)
this.state = {
- searchTerm: '',
- display: 'Cards'
+ display: 'Cards',
+ value: ''
}
this.setSearchTerm = this.setSearchTerm.bind(this)
this.toggleDisplay = this.toggleDisplay.bind(this)
}
setSearchTerm(event){
- const searchTerm = event.target.value
- this.setState({searchTerm: searchTerm})
+ const value = event.target.value
+ this.setState({value: value})
}
toggleDisplay(){
@@ -35,6 +36,11 @@ export default class Unarchive extends Component {
this.setState( {
display: display
})
+// TODO: check whether this should be a function declaration
+ // handleInput( event ){
+ // const value
+ // this.setState({ value: event.target.value })
+ // }
}
render(){
@@ -44,7 +50,8 @@ export default class Unarchive extends Component {
:
return (
-
{toggleButtonText}
-
+ */}
+
+ {toggleButtonText}
+
{toggleDisplayStatus}
)
diff --git a/browser/components/BoardShowPage/MenuSideBar/index.js b/browser/components/BoardShowPage/MenuSideBar/index.js
index a12dd2ab..cae0f7c1 100644
--- a/browser/components/BoardShowPage/MenuSideBar/index.js
+++ b/browser/components/BoardShowPage/MenuSideBar/index.js
@@ -10,6 +10,7 @@ import List from '../List'
import Unarchive from './Unarchive'
import InviteByEmailPopover from '../../InviteByEmailPopover'
import Avatar from '../../Avatar'
+import LabelsPane from './LabelsPane'
import './index.sass'
// panes
@@ -293,11 +294,11 @@ const SettingsPane = ({board, onClose, gotoPane, goBack}) =>
Settings Label TBD
-
-const LabelsPane = ({board, onClose, gotoPane, goBack}) =>
-
- Labels Panel
-
+// TODO: how to use the labelspane component
+// const LabelsPane = ({board, onClose, gotoPane, goBack}) =>
+ //
+ // Labels Panel
+ //
const DownloadBoardButton = (props) => {