@@ -2,7 +2,7 @@ import React, { useState, useContext } from 'react';
22import { styled } from '@mui/material/styles' ;
33import { AppContext } from '../../context/AppContext.jsx' ;
44import { selectCsrfToken , selectProfileMap } from '../../context/selectors.js' ;
5- import { Box , Card , CardHeader , CardContent , Container , Typography , IconButton , Tooltip , Button } from '@mui/material' ;
5+ import { Box , Card , CardHeader , CardContent , Container , Typography , IconButton , Tooltip , Button , Select , MenuItem } from '@mui/material' ;
66import { green } from '@mui/material/colors' ;
77import CheckCircleIcon from '@mui/icons-material/CheckCircle' ;
88import CloseIcon from '@mui/icons-material/Close' ;
@@ -133,9 +133,32 @@ const FeedbackExternalRecipientCard = ({
133133 { recipientProfile ?. email }
134134 </ a >
135135 < br />
136- My Company: { recipientProfile ?. companyName }
137- < br />
136+ Company: { recipientProfile ?. companyName }
138137 </ Typography >
138+ < Select
139+ label = "Status"
140+ name = "inactive"
141+ value = { recipientProfile ?. inactive ? 'Inactive' : 'Active' }
142+ onChange = { ( e ) => {
143+ e . stopPropagation ( ) ;
144+ onEditHandle ( { ...recipientProfile , inactive : e . target . value === 'Inactive' } ) ;
145+ } }
146+ fullWidth
147+ margin = "normal"
148+ disabled = { true }
149+ sx = { {
150+ fontSize : '0.75rem' ,
151+ '& .MuiSelect-select' : {
152+ padding : '4px 8px' ,
153+ } ,
154+ '& .MuiMenuItem-root' : {
155+ fontSize : '0.75rem' ,
156+ } ,
157+ } }
158+ >
159+ < MenuItem value = "Active" > Active</ MenuItem >
160+ < MenuItem value = "Inactive" > Inactive</ MenuItem >
161+ </ Select >
139162 < Button onClick = { ( e ) => {
140163 e . stopPropagation ( ) ;
141164 handleEditOpen ( ) ;
0 commit comments