import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import { Button, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Grid, Typography, Slide, } from '@material-ui/core'; const styles = theme => ({ title: { display: 'block', margin: `${theme.spacing(4)}px 0 ${theme.spacing(2)}px`, }, }); const Transition = React.forwardRef(function Transition(props, ref) { // eslint-disable-line return ; }); class AlertDialog extends React.Component { // eslint-disable-line state = { open: false, openSlide: false, }; handleClickOpen = () => { this.setState({ open: true }); }; handleClose = () => { this.setState({ open: false }); }; handleClickOpenSlide = () => { this.setState({ openSlide: true }); }; handleCloseSlide = () => { this.setState({ openSlide: false }); }; render() { const { classes } = this.props; return (
Fade Transition {"Use Google's location service?"} Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running. Slide Transition {"Use Google's location service?"} Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.
); } } AlertDialog.propTypes = { classes: PropTypes.object.isRequired, }; export default withStyles(styles)(AlertDialog);