From a6825c4269eaaba00530f7f3a6edc42bb12469e1 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Wed, 7 Dec 2016 16:24:33 -0500 Subject: [PATCH] Fix imports on My Files page --- js/component/menu.js | 10 ++++------ js/page/my_files.js | 1 + 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/js/component/menu.js b/js/component/menu.js index 84d643bbc..a3670646d 100644 --- a/js/component/menu.js +++ b/js/component/menu.js @@ -3,11 +3,11 @@ import ReactDOM from 'react-dom'; import {Icon} from './common.js'; // Generic menu styles -var menuStyle = { +export let menuStyle = { whiteSpace: 'nowrap' }; -var Menu = React.createClass({ +export let Menu = React.createClass({ handleWindowClick: function(e) { if (this.props.toggleButton && ReactDOM.findDOMNode(this.props.toggleButton).contains(e.target)) { // Toggle button was clicked @@ -44,10 +44,10 @@ var Menu = React.createClass({ } }); -var menuItemStyle = { +export let menuItemStyle = { display: 'block', }; -var MenuItem = React.createClass({ +export let MenuItem = React.createClass({ propTypes: { href: React.PropTypes.string, label: React.PropTypes.string, @@ -72,5 +72,3 @@ var MenuItem = React.createClass({ ); } }); - -export default Menu; diff --git a/js/page/my_files.js b/js/page/my_files.js index 64a79e31a..d5e5aea5d 100644 --- a/js/page/my_files.js +++ b/js/page/my_files.js @@ -1,6 +1,7 @@ import React from 'react'; import lbry from '../lbry.js'; import {Link, WatchLink} from '../component/link.js'; +import {Menu, MenuItem} from '../component/menu.js'; import Modal from '../component/modal.js'; import {BusyMessage, Thumbnail} from '../component/common.js';