mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-26 04:54:36 +00:00
change
This commit is contained in:
@@ -29,9 +29,9 @@ const ConfirmationModal: React.FC<ConfirmationModalProps> = observer(({title, is
|
||||
confirmButtonColor, titleColor, img, isLoading,children,
|
||||
className}) => {
|
||||
const classes = useCommonStyles();
|
||||
const confirmStyle = {width: 100, marginLeft: 20}
|
||||
const confirmStyle = {width: 100, marginLeft: 20}
|
||||
return (
|
||||
<CustomModal open={isOpen} onClose={onClose} disableBackdropClick={true} isWide={isWide} className={className}>
|
||||
<CustomModal open={isOpen} onClose={onClose} disableBackdropClick={true} isWide={isWide} className={`${className}`}>
|
||||
<div className="confirmationHeader">
|
||||
<div className="confirmationTitle" style={titleColor ? {color: titleColor} : {}}>{title ?? "CONFIRMATION"}</div>
|
||||
<img src={iconClose} onClick={onClose} alt="close"/>
|
||||
@@ -55,8 +55,6 @@ const ConfirmationModal: React.FC<ConfirmationModalProps> = observer(({title, is
|
||||
</Button>
|
||||
<Button style={confirmButtonColor ? {backgroundColor: confirmButtonColor,...confirmStyle} : {...confirmStyle}}
|
||||
className={classes.button} size={"small"}
|
||||
|
||||
|
||||
onClick={onConfirm}
|
||||
disabled={confirmDisabled || isLoading}
|
||||
endIcon={isLoading && <img src={spinner} alt="spinner"/>}>{confirmButtonText ?? "YES"}
|
||||
|
@@ -10,8 +10,7 @@ const useStyles = makeStyles({
|
||||
justifyContent: "center"
|
||||
},
|
||||
modalContents: {
|
||||
borderRadius: "5px",
|
||||
|
||||
borderRadius: "5px",
|
||||
outline: "none",
|
||||
minWidth: "300px",
|
||||
backgroundColor: "rgb(255, 255, 255)"
|
||||
|
@@ -41,7 +41,7 @@ export const useCommonStyles = makeStyles(() => ({
|
||||
top: '10%',
|
||||
left: '50%',
|
||||
transform: 'translate(-50%, 0%)',
|
||||
width: '80vw',
|
||||
width: "MAX(40vw, 600px)",
|
||||
bgcolor: 'background.paper',
|
||||
borderRadius: '5px',
|
||||
boxShadow: 24,
|
||||
|
Reference in New Issue
Block a user