Skip to content

Commit

Permalink
update report view
Browse files Browse the repository at this point in the history
  • Loading branch information
tedw87 committed Apr 25, 2024
1 parent 9903d00 commit eb3f06e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/components/theme/Views/InsituReportView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import './styles.less';

function InsituReportView(props) {
const { content } = props;
const { description, file, ...filteredContent } = content;
const { description, file, report_category, ...filteredContent } = content;

return (
<div className="insitu-report-view">
Expand All @@ -18,22 +18,14 @@ function InsituReportView(props) {
<Grid>
<Grid.Row>
<Grid.Column width={8}>
<h3>Summary</h3>
<p className="documentDescription eea callout">
{content.description}
</p>
</Grid.Column>
<Grid.Column width={4}>
{content.preview_image && (
<Image
src={content?.preview_image.download}
alt="Descriptive Image"
/>
{content?.description && (
<>
<h3>Summary</h3>
<p className="documentDescription eea callout">
{content.description}
</p>
</>
)}
</Grid.Column>
</Grid.Row>
<Grid.Row>
<Grid.Column width={8}>
{!!content.file?.download && (
<div className="file-download">
<div className="file-title">
Expand All @@ -52,6 +44,14 @@ function InsituReportView(props) {
</div>
)}
</Grid.Column>
<Grid.Column width={4}>
{content.preview_image && (
<Image
src={content?.preview_image.download}
alt="Descriptive Image"
/>
)}
</Grid.Column>
</Grid.Row>
</Grid>
{isOldFormat(content) ? (
Expand Down
6 changes: 6 additions & 0 deletions src/components/theme/Views/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
background: #f9f7f6;
color: #333332;

.button {
border: 2px solid #783f34 !important;
color: #783f34 !important;
background-color: #f9f7f6 !important;
}

a {
color: #333332;
font-size: 17px;
Expand Down

0 comments on commit eb3f06e

Please sign in to comment.