how to set height of material ui dialog react

JavaScript
import { makeStyles } from '@material-ui/core/styles';

const useStyles = makeStyles(theme => ({
    dialogPaper: {
       
        height : '400px'
    },
}));

//then in your dialog
 <Dialog  classes={{ paper : classes.dialogPaper}} > 
   //...
 </Dialog>
Source

Also in JavaScript: