Skip to content

Commit 19311ac

Browse files
chore(deps): update dependency typescript to v5.5.4 (#318)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Antoine Caron <[email protected]>
1 parent da7b92e commit 19311ac

File tree

5 files changed

+2047
-258
lines changed

5 files changed

+2047
-258
lines changed

modules/event/components/EventCard.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import dayjs from 'dayjs';
77
import _capitalize from 'lodash/capitalize';
88
import type { Event } from '../types';
99
import { ButtonLink } from '../../atoms/button/Button';
10-
import ReactMarkdown from 'react-markdown';
1110
import { H3 } from '../../atoms/remark/Titles';
1211
import styles from './EventCard.module.css';
1312
import { Calendar } from '../../icons/Calendar';
@@ -18,9 +17,10 @@ import { Location } from './Location';
1817

1918
type Props = { event: Event };
2019

21-
export const EventCard: FC<Props> = ({ event }) => {
20+
export const EventCard: FC<Props> = async ({ event }) => {
2221
const dateParsed = dayjs(event.dateTime);
2322
const formattedDayAndMonth = _capitalize(dateParsed.format('dddd D MMMM YYYY à H:mm'));
23+
const ReactMarkdown = await import('react-markdown').then((module) => module.default);
2424

2525
return (
2626
<article className={styles.container}>

modules/event/components/EventDetail.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import Image from 'next/image';
33
import { H1 } from '../../atoms/remark/Titles';
44
import type { Event } from '../types';
55
import styles from './EventDetail.module.css';
6-
import ReactMarkdown from 'react-markdown';
76
import { Calendar } from '../../icons/Calendar';
87
import React from 'react';
98
import dayjs from 'dayjs';
@@ -14,9 +13,10 @@ import { PhotoAlbum } from './PhotoAlbum';
1413

1514
type Props = { event: Event };
1615

17-
export const EventDetail: React.FC<Props> = ({ event }) => {
16+
export const EventDetail: React.FC<Props> = async ({ event }) => {
1817
const dateParsed = dayjs(event.dateTime);
1918
const formattedDayAndMonth = _capitalize(dateParsed.format('dddd D MMMM YYYY à H:mm'));
19+
const ReactMarkdown = await import('react-markdown').then((module) => module.default);
2020
let replays;
2121
let images;
2222

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,12 @@
3737
"autoprefixer": "^10.4.16",
3838
"classnames": "2.5.1",
3939
"encoding": "^0.1.13",
40+
"eslint": "8.56.0",
41+
"eslint-config-next": "14.0.4",
42+
"eslint-config-prettier": "9.1.0",
4043
"graphql": "^16.8.1",
4144
"graphql-request": "^7.0.0",
42-
"husky": "^9.0.0",
45+
"husky": "^8.0.0",
4346
"oxlint": "^0.8.0",
4447
"postcss": "^8.4.32",
4548
"prettier": "3.3.3",

0 commit comments

Comments
 (0)