File tree Expand file tree Collapse file tree
frontend/packages/volto-intranet/src
components/Blocks/Listing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const EventItem = ({
4040
4141 const end =
4242 item [ '@type' ] === 'Event' && ( item . end ? new Date ( item . end ) : null ) ;
43-
43+
4444 const notSameDay = end && start ?. getDate ( ) !== end ?. getDate ( ) ;
4545 const formattedStartDate = start ? formatter . format ( start ) : '' ;
4646 const formattedEndDate = end ? formatter . format ( end ) : '' ;
Original file line number Diff line number Diff line change @@ -2,19 +2,19 @@ import { ConfigType } from '@plone/registry';
22import EventCalendarTemplate from '../components/Blocks/Listing/EventCalendarTemplate' ;
33
44export default function install ( config : ConfigType ) {
5- const listingBlockVariations = [
6- ...( config . blocks . blocksConfig . listing . variations || [ ] ) ,
7- {
8- id : 'listDate' ,
9- title : 'List with date' ,
10- template : EventCalendarTemplate ,
11- } ,
12- ] . filter ( ( variation ) => ! ! variation ) ;
5+ const listingBlockVariations = [
6+ ...( config . blocks . blocksConfig . listing . variations || [ ] ) ,
7+ {
8+ id : 'listDate' ,
9+ title : 'List with date' ,
10+ template : EventCalendarTemplate ,
11+ } ,
12+ ] . filter ( ( variation ) => ! ! variation ) ;
1313
14- config . blocks . blocksConfig . listing = {
15- ...config . blocks . blocksConfig . listing ,
16- variations : listingBlockVariations ,
17- } ;
14+ config . blocks . blocksConfig . listing = {
15+ ...config . blocks . blocksConfig . listing ,
16+ variations : listingBlockVariations ,
17+ } ;
1818
19- return config ;
19+ return config ;
2020}
Original file line number Diff line number Diff line change 6363 }
6464 }
6565 }
66- }
66+ }
You can’t perform that action at this time.
0 commit comments