aboutsummaryrefslogtreecommitdiffstats
path: root/ui/responsive/app/components/account-options-menus.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/responsive/app/components/account-options-menus.js')
-rw-r--r--ui/responsive/app/components/account-options-menus.js77
1 files changed, 0 insertions, 77 deletions
diff --git a/ui/responsive/app/components/account-options-menus.js b/ui/responsive/app/components/account-options-menus.js
deleted file mode 100644
index ce2699b38..000000000
--- a/ui/responsive/app/components/account-options-menus.js
+++ /dev/null
@@ -1,77 +0,0 @@
-const Component = require('react').Component;
-const PropTypes = require('react').PropTypes;
-const h = require('react-hyperscript');
-const Dropdown = require('./dropdown').Dropdown;
-const DropdownMenuItem = require('./dropdown').DropdownMenuItem;
-
-class AccountOptionsMenus extends Component {
- constructor(props) {
- super(props);
- this.state = {
- overflowMenuActive: false,
- switchingMenuActive: false,
- };
- console.log("state:", this.state);
- }
-
- render() {
- console.log("RENDERING AcountOptionsMenus");
- return h(
- 'span',
- {
- style: this.props.style,
- },
- [
- h(
- 'i.fa.fa-angle-down',
- {
- onClick: (event) => {
- event.stopPropagation();
- this.setState({ switchingMenuActive: !this.state.switchingMenuActive })
- }
- },
- [
- h(
- Dropdown,
- {
- isOpen: this.state.switchingMenuActive,
- onClickOutside: () => { this.setState({ switchingMenuActive: false})}
- },
- [
- h(DropdownMenuItem, {
- }, 'Settings'),
- ]
- )
- ],
- ),
- h(
- 'i.fa.fa-ellipsis-h',
- {
- style: { 'marginLeft': '10px'},
- onClick: (event) => {
- event.stopPropagation();
- this.setState({ overflowMenuActive: !this.state.overflowMenuActive })
- }
- },
- [
- h(
- Dropdown,
- {
- isOpen: this.state.overflowMenuActive,
- onClickOutside: () => { this.setState({ overflowMenuActive: false})}
- },
- [
- h(DropdownMenuItem, {
- }, 'Settings'),
- ]
- )
- ]
- )
- ]
- )
- }
-}
-
-module.exports = {
- AccountOptionsMenus,
-}; \ No newline at end of file