Add beginning of email header information
The format is butt-ugly, but at least I'm showing info.
This commit is contained in:
parent
356173e4a3
commit
eb09b39de3
|
@ -1,5 +1,7 @@
|
||||||
import Button from "react-bootstrap/Button";
|
import Button from "react-bootstrap/Button";
|
||||||
|
import Col from "react-bootstrap/Col";
|
||||||
import Container from "react-bootstrap/Container";
|
import Container from "react-bootstrap/Container";
|
||||||
|
import Form from "react-bootstrap/Form";
|
||||||
import Placeholder from "react-bootstrap/Placeholder";
|
import Placeholder from "react-bootstrap/Placeholder";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import Row from "react-bootstrap/Row";
|
import Row from "react-bootstrap/Row";
|
||||||
|
@ -65,6 +67,30 @@ class EmailContent extends React.Component<
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<Container fluid>
|
<Container fluid>
|
||||||
|
<Row>
|
||||||
|
<Form>
|
||||||
|
<Form.Group
|
||||||
|
as={Row}
|
||||||
|
className="mb-3"
|
||||||
|
controlId="formHorizontalEmail"
|
||||||
|
>
|
||||||
|
<Form.Label column sm={2}>
|
||||||
|
From
|
||||||
|
</Form.Label>
|
||||||
|
<Col sm={10}>
|
||||||
|
<p>
|
||||||
|
{email.from == null
|
||||||
|
? "unknown"
|
||||||
|
: email.from.map((f) => f.name)}
|
||||||
|
</p>
|
||||||
|
</Col>
|
||||||
|
<Form.Label column sm={2}>
|
||||||
|
Received
|
||||||
|
</Form.Label>
|
||||||
|
<Col sm={10}>{email.receivedAt}</Col>
|
||||||
|
</Form.Group>
|
||||||
|
</Form>
|
||||||
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|
|
@ -18,7 +18,6 @@ const EmailContentText: React.FC<EmailContentTextProps> = (props) => {
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<Stack>
|
<Stack>
|
||||||
<li>{email.receivedAt}</li>
|
|
||||||
<pre>
|
<pre>
|
||||||
{email.textBody.map((t) =>
|
{email.textBody.map((t) =>
|
||||||
t.partId === undefined ? (
|
t.partId === undefined ? (
|
||||||
|
|
Loading…
Reference in New Issue