Merge pull request #104 from lbryio/my-files-page-fix-imports

Fix imports on My Files page
This commit is contained in:
alexliebowitz 2016-12-09 02:51:20 -05:00 committed by GitHub
commit 3058f6714c
2 changed files with 5 additions and 6 deletions

View file

@ -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;

View file

@ -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';