Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: added sidebar panel for Settings in Editor (ZNTA-1736)
- Loading branch information
kgough
committed
Mar 3, 2017
1 parent
bb2882b
commit f8fdfee
Showing
2 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
server/zanata-frontend/src/editor/app/containers/SidebarSettings.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React, { PropTypes } from 'react' | ||
import { Button } from 'react-bootstrap' | ||
import Icon from '../../../frontend/app/components/Icon' | ||
|
||
const SidebarSettings = React.createClass({ | ||
|
||
propTypes: { | ||
/* close the sidebar */ | ||
close: PropTypes.func.isRequired | ||
}, | ||
|
||
sidebarDetails () { | ||
return ( | ||
<p>TEST</p> | ||
) | ||
}, | ||
|
||
render () { | ||
return ( | ||
<div> | ||
<h1 className="sidebar-heading"> | ||
<Icon name="settings" className="s1" /> Settings | ||
<span className="s1 pull-right"> | ||
<Button bsStyle="link" onClick={this.props.close}> | ||
<Icon name="cross" /> | ||
</Button> | ||
</span> | ||
</h1> | ||
<div className="sidebar-wrapper"> | ||
{this.sidebarDetails()} | ||
</div> | ||
</div> | ||
) | ||
} | ||
}) | ||
|
||
export default SidebarSettings |