Skip to content

Commit ee68d8f

Browse files
dependabot[bot]Deepak Prabhakara
andauthored
Bump react-markdown from 9.0.3 to 10.0.0 (#773)
* Bump react-markdown from 9.0.3 to 10.0.0 Bumps [react-markdown](https://github.com/remarkjs/react-markdown) from 9.0.3 to 10.0.0. - [Release notes](https://github.com/remarkjs/react-markdown/releases) - [Changelog](https://github.com/remarkjs/react-markdown/blob/main/changelog.md) - [Commits](remarkjs/react-markdown@9.0.3...10.0.0) --- updated-dependencies: - dependency-name: react-markdown dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * className is no longer available * format --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Deepak Prabhakara <[email protected]>
1 parent 77ab819 commit ee68d8f

File tree

4 files changed

+14
-17
lines changed

4 files changed

+14
-17
lines changed

package-lock.json

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"dayjs": "1.11.13",
5050
"lodash": "4.17.21",
5151
"react-datepicker": "8.1.0",
52-
"react-markdown": "9.0.3",
52+
"react-markdown": "10.0.0",
5353
"react-modal": "3.16.3",
5454
"react-redux": "9.2.0",
5555
"redux": "5.0.1",

src/components/views/EventRow.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,11 @@ const EventRow: React.FC<propTypes> = ({ event, fields, renderers, openModal })
6060
{fields.map((item, idx) => {
6161
if (item.type === "markdown") {
6262
return (
63-
<div key={idx} className={`flex flex1 content-section`} data-testid="markdown">
64-
<ReactMarkdown
65-
className="EventItem u-fontWeight--medium u-lineHeight--more"
66-
components={renderers}
67-
children={getCellValue(item)}
68-
/>
63+
<div
64+
key={idx}
65+
className={`flex flex1 content-section EventItem u-fontWeight--medium u-lineHeight--more`}
66+
data-testid="markdown">
67+
<ReactMarkdown components={renderers} children={getCellValue(item)} />
6968
</div>
7069
);
7170
} else if (item.type === "showEvent") {

src/components/views/MobileEventRow.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,8 @@ const MobileEventRow: React.FC<propTypes> = ({ event, index, openModal, renderer
2424
<div className="TableRow-content flex flex1">
2525
<div className="flex-column flex1 u-overflow--hidden">
2626
<div className="flex flex-auto">
27-
<div className="u-color--dustyGray u-fontSize--normal u-lineHeight--normal">
28-
<ReactMarkdown
29-
className="EventItem u-fontWeight--medium u-lineHeight--more u-display--inlineBlock"
30-
components={renderers}
31-
children={event.display.markdown}
32-
/>
27+
<div className="u-color--dustyGray u-fontSize--normal u-lineHeight--normal EventItem u-fontWeight--medium u-lineHeight--more u-display--inlineBlock">
28+
<ReactMarkdown components={renderers} children={event.display.markdown} />
3329
</div>
3430
</div>
3531
<div className="flex flex1 u-marginTop--normal">

0 commit comments

Comments
 (0)