File tree 5 files changed +2047
-258
lines changed
5 files changed +2047
-258
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import dayjs from 'dayjs';
7
7
import _capitalize from 'lodash/capitalize' ;
8
8
import type { Event } from '../types' ;
9
9
import { ButtonLink } from '../../atoms/button/Button' ;
10
- import ReactMarkdown from 'react-markdown' ;
11
10
import { H3 } from '../../atoms/remark/Titles' ;
12
11
import styles from './EventCard.module.css' ;
13
12
import { Calendar } from '../../icons/Calendar' ;
@@ -18,9 +17,10 @@ import { Location } from './Location';
18
17
19
18
type Props = { event : Event } ;
20
19
21
- export const EventCard : FC < Props > = ( { event } ) => {
20
+ export const EventCard : FC < Props > = async ( { event } ) => {
22
21
const dateParsed = dayjs ( event . dateTime ) ;
23
22
const formattedDayAndMonth = _capitalize ( dateParsed . format ( 'dddd D MMMM YYYY à H:mm' ) ) ;
23
+ const ReactMarkdown = await import ( 'react-markdown' ) . then ( ( module ) => module . default ) ;
24
24
25
25
return (
26
26
< article className = { styles . container } >
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import Image from 'next/image';
3
3
import { H1 } from '../../atoms/remark/Titles' ;
4
4
import type { Event } from '../types' ;
5
5
import styles from './EventDetail.module.css' ;
6
- import ReactMarkdown from 'react-markdown' ;
7
6
import { Calendar } from '../../icons/Calendar' ;
8
7
import React from 'react' ;
9
8
import dayjs from 'dayjs' ;
@@ -14,9 +13,10 @@ import { PhotoAlbum } from './PhotoAlbum';
14
13
15
14
type Props = { event : Event } ;
16
15
17
- export const EventDetail : React . FC < Props > = ( { event } ) => {
16
+ export const EventDetail : React . FC < Props > = async ( { event } ) => {
18
17
const dateParsed = dayjs ( event . dateTime ) ;
19
18
const formattedDayAndMonth = _capitalize ( dateParsed . format ( 'dddd D MMMM YYYY à H:mm' ) ) ;
19
+ const ReactMarkdown = await import ( 'react-markdown' ) . then ( ( module ) => module . default ) ;
20
20
let replays ;
21
21
let images ;
22
22
Original file line number Diff line number Diff line change 37
37
"autoprefixer" : " ^10.4.16" ,
38
38
"classnames" : " 2.5.1" ,
39
39
"encoding" : " ^0.1.13" ,
40
+ "eslint" : " 8.56.0" ,
41
+ "eslint-config-next" : " 14.0.4" ,
42
+ "eslint-config-prettier" : " 9.1.0" ,
40
43
"graphql" : " ^16.8.1" ,
41
44
"graphql-request" : " ^7.0.0" ,
42
- "husky" : " ^9 .0.0" ,
45
+ "husky" : " ^8 .0.0" ,
43
46
"oxlint" : " ^0.8.0" ,
44
47
"postcss" : " ^8.4.32" ,
45
48
"prettier" : " 3.3.3" ,
You can’t perform that action at this time.
0 commit comments