Removing defunct components
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -98,7 +98,7 @@
|
||||
|
||||
// Release details
|
||||
// These are automatically injected to built HTML
|
||||
var build = "1554926560";
|
||||
var build = "1554932015";
|
||||
var version = "3.34.3";
|
||||
|
||||
// Construct the script tag
|
||||
|
||||
@ -1,28 +1,23 @@
|
||||
|
||||
import React from 'react'
|
||||
import Icon from './Icon'
|
||||
import React, { memo } from 'react';
|
||||
import Icon from './Icon';
|
||||
|
||||
export default class ContextMenuTrigger extends React.Component{
|
||||
export default memo((props) => {
|
||||
|
||||
constructor(props){
|
||||
super(props);
|
||||
}
|
||||
|
||||
handleClick(e){
|
||||
const handleClick = (e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
this.props.onTrigger(e);
|
||||
props.onTrigger(e);
|
||||
}
|
||||
|
||||
render(){
|
||||
var className = 'context-menu-trigger mouse-contextable touch-contextable'
|
||||
if (this.props.className){
|
||||
className += ' '+this.props.className
|
||||
}
|
||||
return (
|
||||
<span className={className} onClick={e => this.handleClick(e)}>
|
||||
<Icon name="more_horiz" />
|
||||
</span>
|
||||
);
|
||||
let className = 'context-menu-trigger mouse-contextable touch-contextable'
|
||||
if (props.className){
|
||||
className += ' '+props.className
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<span className={className} onClick={e => handleClick(e)}>
|
||||
<Icon name="more_horiz" />
|
||||
</span>
|
||||
);
|
||||
});
|
||||
|
||||
@ -1,14 +1,12 @@
|
||||
|
||||
import React from 'react'
|
||||
import { connect } from 'react-redux'
|
||||
import { bindActionCreators } from 'redux'
|
||||
import React from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import { bindActionCreators } from 'redux';
|
||||
|
||||
import VolumeControl from './VolumeControl'
|
||||
import MuteControl from './MuteControl'
|
||||
import SnapcastPowerButton from './SnapcastPowerButton'
|
||||
import Icon from '../Icon'
|
||||
import VolumeControl from './VolumeControl';
|
||||
import MuteControl from './MuteControl';
|
||||
import Icon from '../Icon';
|
||||
|
||||
import * as helpers from '../../helpers';
|
||||
import * as coreActions from '../../services/core/actions';
|
||||
import * as pusherActions from '../../services/pusher/actions';
|
||||
import * as snapcastActions from '../../services/snapcast/actions';
|
||||
|
||||
@ -1,34 +0,0 @@
|
||||
|
||||
import React from 'react'
|
||||
import { connect } from 'react-redux'
|
||||
import { bindActionCreators } from 'redux'
|
||||
|
||||
import Icon from '../Icon'
|
||||
|
||||
import * as helpers from '../../helpers';
|
||||
import * as snapcastActions from '../../services/snapcast/actions';
|
||||
|
||||
export default class SnapcastPowerButton extends React.Component{
|
||||
|
||||
constructor(props){
|
||||
super(props);
|
||||
|
||||
this.handleClick = this.handleClick.bind(this);
|
||||
}
|
||||
|
||||
handleClick(e){
|
||||
this.props.onClick(e);
|
||||
}
|
||||
|
||||
render(){
|
||||
var classname = "snapcast-power-button";
|
||||
if (this.props.className){
|
||||
classname += " "+this.props.className;
|
||||
}
|
||||
return (
|
||||
<span className={classname} onClick={e => this.handleClick(e)}>
|
||||
<Icon name="power_settings_new" />
|
||||
</span>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user