mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2026-10-19 16:14:39 +00:00
maintenance (cleanup): cleanup code
This commit is contained in:
@@ -158,7 +158,7 @@ export class ExistingThing extends React.Component {
|
||||
return connectDragSource(connectDropNativeFile(connectDropFile(
|
||||
<div className="component_thing">
|
||||
<Link to={this.props.file.link}>
|
||||
<Card className={this.state.hover} onClick={this.onSelect.bind(this)} onMouseEnter={() => this.setState({hover: true})} onMouseLeave={() => this.setState({hover: false})} className={className}>
|
||||
<Card className={this.state.hover} className={className}>
|
||||
<Icon name={this.props.file.icon || this.props.file.type} />
|
||||
<Filename filename={this.props.file.name} onRename={this.onRename.bind(this)} is_renaming={this.state.is_renaming} />
|
||||
<FileSize type={this.props.file.type} size={this.props.file.size} />
|
||||
@@ -216,7 +216,6 @@ class Filename extends React.Component {
|
||||
|
||||
const ActionButton = (props) => {
|
||||
const onRename = (e) => {
|
||||
console.log(props);
|
||||
e.preventDefault();
|
||||
props.onClickRename();
|
||||
};
|
||||
|
||||
@@ -64,7 +64,7 @@ export class NewThing extends React.Component {
|
||||
<NgIf className="component_message" cond={this.state.message !== null}>
|
||||
{this.state.message}
|
||||
</NgIf>
|
||||
<span className="component_updater">
|
||||
<span className="component_action">
|
||||
<div className="action">
|
||||
<div>
|
||||
<Icon className="component_updater--icon" name="delete" onClick={this.onDelete.bind(this)} />
|
||||
|
||||
@@ -112,7 +112,7 @@ export class ViewerPage extends React.Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
let style = {height: '100%'}; // {{height: this.state.height+'px'}}
|
||||
let style = {height: '100%'};
|
||||
return (
|
||||
<div style={style}>
|
||||
<BreadCrumb needSaving={this.state.needSaving} className="breadcrumb" path={this.state.path} />
|
||||
|
||||
Reference in New Issue
Block a user