mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-29 08:21:30 +00:00
Merge pull request #104 from lbryio/my-files-page-fix-imports
Fix imports on My Files page
This commit is contained in:
commit
3058f6714c
2 changed files with 5 additions and 6 deletions
|
@ -3,11 +3,11 @@ import ReactDOM from 'react-dom';
|
||||||
import {Icon} from './common.js';
|
import {Icon} from './common.js';
|
||||||
|
|
||||||
// Generic menu styles
|
// Generic menu styles
|
||||||
var menuStyle = {
|
export let menuStyle = {
|
||||||
whiteSpace: 'nowrap'
|
whiteSpace: 'nowrap'
|
||||||
};
|
};
|
||||||
|
|
||||||
var Menu = React.createClass({
|
export let Menu = React.createClass({
|
||||||
handleWindowClick: function(e) {
|
handleWindowClick: function(e) {
|
||||||
if (this.props.toggleButton && ReactDOM.findDOMNode(this.props.toggleButton).contains(e.target)) {
|
if (this.props.toggleButton && ReactDOM.findDOMNode(this.props.toggleButton).contains(e.target)) {
|
||||||
// Toggle button was clicked
|
// Toggle button was clicked
|
||||||
|
@ -44,10 +44,10 @@ var Menu = React.createClass({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var menuItemStyle = {
|
export let menuItemStyle = {
|
||||||
display: 'block',
|
display: 'block',
|
||||||
};
|
};
|
||||||
var MenuItem = React.createClass({
|
export let MenuItem = React.createClass({
|
||||||
propTypes: {
|
propTypes: {
|
||||||
href: React.PropTypes.string,
|
href: React.PropTypes.string,
|
||||||
label: React.PropTypes.string,
|
label: React.PropTypes.string,
|
||||||
|
@ -72,5 +72,3 @@ var MenuItem = React.createClass({
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
export default Menu;
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import lbry from '../lbry.js';
|
import lbry from '../lbry.js';
|
||||||
import {Link, WatchLink} from '../component/link.js';
|
import {Link, WatchLink} from '../component/link.js';
|
||||||
|
import {Menu, MenuItem} from '../component/menu.js';
|
||||||
import Modal from '../component/modal.js';
|
import Modal from '../component/modal.js';
|
||||||
import {BusyMessage, Thumbnail} from '../component/common.js';
|
import {BusyMessage, Thumbnail} from '../component/common.js';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue