Skip to content

Commit

Permalink
formatted shadowed summarytemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschulz committed May 13, 2024
1 parent 204f28e commit a772a65
Showing 1 changed file with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import React from 'react';
import PropTypes from 'prop-types';
import { ConditionalLink, Component, FormattedDate } from '@plone/volto/components';
import {
ConditionalLink,
Component,
FormattedDate,
} from '@plone/volto/components';
import { flattenToAppURL } from '@plone/volto/helpers';

import { isInternalURL } from '@plone/volto/helpers/Url/Url';
Expand Down Expand Up @@ -28,11 +32,12 @@ const SummaryTemplate = ({ items, linkTitle, linkHref, isEditMode }) => {
<Component componentName="PreviewImage" item={item} alt="" />
<div className="listing-body">
<h3>{item.title || item.id}</h3>
{
item.start && item.end && (
<p><FormattedDate date={item.start} /> - <FormattedDate date={item.end} /></p>
)
}
{item.start && item.end && (
<p>
<FormattedDate date={item.start} /> -{' '}
<FormattedDate date={item.end} />
</p>
)}
<p>{item.description}</p>
</div>
</ConditionalLink>
Expand Down

0 comments on commit a772a65

Please sign in to comment.