refactor: replace correspondence textareas with mui text fields

This commit is contained in:
cesnimda
2026-03-22 14:22:41 +01:00
parent e25b46d51c
commit 622bfebe6d
@@ -394,25 +394,13 @@ export default function Correspondence({ jobId }: { jobId: number }) {
<Typography sx={{ color: "text.secondary", mb: 1 }}> <Typography sx={{ color: "text.secondary", mb: 1 }}>
Paste raw email text (headers optional). We parse Subject and Date when present. Paste raw email text (headers optional). We parse Subject and Date when present.
</Typography> </Typography>
<textarea <TextField
multiline
minRows={10}
fullWidth
value={rawEmail} value={rawEmail}
onChange={(e) => setRawEmail(e.target.value)} onChange={(e) => setRawEmail(e.target.value)}
placeholder={"Subject: ...\nDate: ...\nFrom: ...\nTo: ...\n\nBody..."} placeholder={"Subject: ...\nDate: ...\nFrom: ...\nTo: ...\n\nBody..."}
style={{
width: "100%",
minHeight: 220,
resize: "vertical",
padding: 12,
borderRadius: 12,
border:
theme.palette.mode === "dark"
? "1px solid rgba(148,163,184,0.25)"
: "1px solid rgba(15,23,42,0.12)",
background: theme.palette.mode === "dark" ? "rgba(2,6,23,0.25)" : "white",
color: theme.palette.text.primary,
fontFamily: "inherit",
fontSize: 14,
}}
/> />
</> </>
) : ( ) : (