import React from 'react';
import { PropTypes } from 'prop-types';
import classNames from 'classnames';
import SettingsIcon from '@material-ui/icons/SettingsApplications';
import CloseIcon from '@material-ui/icons/Close';
import { withStyles } from '@material-ui/core/styles';
import {
AppBar,
Grid,
Dialog,
Toolbar,
ListItemText,
ListItem,
List,
ListItemSecondaryAction,
Divider,
IconButton,
Typography,
Button,
Switch,
Slide,
InputLabel,
MenuItem,
FormControl,
Select,
Checkbox,
TextField,
} from '@material-ui/core';
import styles from './settings-jss';
const Transition = React.forwardRef(function Transition(props, ref) { // eslint-disable-line
return ;
});
class DetailSettings extends React.Component {
state = {
checked: ['switch', 'check2'],
option: '',
};
handleToggle = value => () => {
const { checked } = this.state;
const currentIndex = checked.indexOf(value);
const newChecked = [...checked];
if (currentIndex === -1) {
newChecked.push(value);
} else {
newChecked.splice(currentIndex, 1);
}
this.setState({
checked: newChecked,
});
};
handleChange = name => event => {
this.setState({
[name]: event.target.value,
});
};
handleChangeSelection = event => {
this.setState({ [event.target.name]: event.target.value });
};
render() {
const { classes, open, handleClose } = this.props;
return (
);
}
}
DetailSettings.propTypes = {
classes: PropTypes.object.isRequired,
open: PropTypes.bool.isRequired,
handleClose: PropTypes.func.isRequired,
};
export default withStyles(styles)(DetailSettings);