Skip to content

Commit 9aaf10b

Browse files
committed
2024-11-07 - add close-button to new-recip-modal screen
1 parent 9525260 commit 9aaf10b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

web-ui/src/components/feedback_external_recipient_selector/NewExternalRecipientModal.jsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { useState } from 'react';
2-
import { Modal, TextField, Button, Box } from '@mui/material';
2+
import { Modal, TextField, Button, Box, IconButton } from '@mui/material';
3+
import CloseIcon from '@mui/icons-material/Close';
34
import PropTypes from 'prop-types';
45

56
const NewExternalRecipientModal = ({ open, onClose, onSubmit }) => {
@@ -21,6 +22,15 @@ const NewExternalRecipientModal = ({ open, onClose, onSubmit }) => {
2122
return (
2223
<Modal open={open} onClose={onClose}>
2324
<Box sx={{ ...modalStyle }}>
25+
<IconButton
26+
edge="start"
27+
color="inherit"
28+
onClick={onClose}
29+
aria-label="close"
30+
sx={{ position: 'absolute', right: 8, top: 8 }}
31+
>
32+
<CloseIcon />
33+
</IconButton>
2434
<h2>Create New External Recipient</h2>
2535
<TextField
2636
label="Email"

0 commit comments

Comments
 (0)