import React from 'react';
import PropTypes from 'prop-types';
import Button from '@material-ui/core/Button';
import DialogTitle from '@material-ui/core/DialogTitle';
// import DialogContent from '@material-ui/core/DialogContent';
import DialogActions from '@material-ui/core/DialogActions';
import Dialog from '@material-ui/core/Dialog';

function ReposConfirmDeleteAll (props) {
  return <Dialog
    maxWidth="xs"
    aria-labelledby="delete-all-confirmation-dialog-title"
    {...props}
  >
    <DialogTitle id="delete-all-confirmation-dialog-title">Are you sure you want to remove all repos?</DialogTitle>
    <DialogActions>
      <Button onClick={() => props.onClose(false)}>
        No
      </Button>
      <Button onClick={() => props.onClose(true)} color="secondary">
        Yes, remove
      </Button>
    </DialogActions>
  </Dialog>
}

ReposConfirmDeleteAll.propTypes = {
  onClose: PropTypes.func
};

export default ReposConfirmDeleteAll

@@ -18,17 +18,16 @@
  'react'
-;
 %0Aimport 
@@ -53,17 +53,16 @@
 p-types'
-;
 %0Aimport 
@@ -99,17 +99,16 @@
 /Button'
-;
 %0Aimport 
@@ -159,13 +159,9 @@
 tle'
-;%0A// 
+%0A
 impo
@@ -169,23 +169,23 @@
 t Dialog
-Content
+Actions
  from '@
@@ -211,17 +211,16 @@
 alog
-Content';
+Actions'
 %0Aimp
@@ -221,39 +221,32 @@
 s'%0Aimport Dialog
-Actions
  from '@material
@@ -264,31 +264,26 @@
 alog
-Actions';%0Aimport Dialog
+'%0Aimport withTheme
  fro
@@ -307,16 +307,25 @@
 ore/
-Dialog';
+styles/withTheme'
 %0A%0Afu
@@ -354,21 +354,40 @@
 eteAll (
-props
+%7B open, onClose, theme %7D
 ) %7B%0A  re
@@ -484,17 +484,53 @@
     
-%7B...props
+open=%7Bopen%7D%0A    onClose=%7B() =%3E onClose(false)
 %7D%0A  
@@ -688,38 +688,32 @@
  onClick=%7B() =%3E 
-props.
 onClose(false)%7D%3E
@@ -773,14 +773,8 @@
  =%3E 
-props.
 onCl
@@ -788,25 +788,51 @@
 e)%7D 
-color=%22secondary%22
+style=%7B%7B color: theme.palette.error.main %7D%7D
 %3E%0A  
@@ -944,33 +944,116 @@
 %0A  o
-nClose: PropTypes.func
+pen: PropTypes.bool.isRequired,%0A  onClose: PropTypes.func.isRequired,%0A  theme: PropTypes.object.isRequired
 %0A%7D
-;
 %0A%0Aex
@@ -1065,16 +1065,28 @@
 default 
+withTheme()(
 ReposCon
@@ -1098,9 +1098,10 @@
 eleteAll
+)
 %0A

remove all would happen if you clicked away from the dialog