Skip to content

Commit 376414a

Browse files
chore: update dependency @openedx/paragon to v22.20.1 (#2023)
* fix(deps): update dependency @openedx/paragon to v22.20.1 * fix: minor type warnings from new Paragon version * test: update snapshot test --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Braden MacDonald <[email protected]>
1 parent ca85ca8 commit 376414a

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

package-lock.json

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

src/editors/EditorContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const EditorContainer: React.FC<Props> = ({
5555
<div className="editor-page">
5656
<AlertMessage
5757
className="m-3"
58-
show={upstreamLibRef}
58+
show={!!upstreamLibRef}
5959
variant="warning"
6060
icon={WarningIcon}
6161
title={intl.formatMessage(messages.libraryBlockEditWarningTitle)}

src/editors/__snapshots__/EditorContainer.test.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ exports[`Editor Container snapshots rendering correctly with expected Input 1`]
5252
className="m-3"
5353
description="Edits made here will only be reflected in this course. These edits may be overridden later if updates are accepted."
5454
icon={[Function]}
55-
show="lb:Axim:TEST:html:571fe018-f3ce-45c9-8f53-5dafcb422fdd"
55+
show={true}
5656
title="Editing Content from a Library"
5757
variant="warning"
5858
/>

src/generic/alert-error/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const AlertError: React.FC<AlertErrorProps> = ({ error, title, onDismiss }) => {
3131
onClose={onDismiss}
3232
>
3333
{title && <Alert.Heading>{title}</Alert.Heading>}
34-
{error instanceof Object && 'message' in error ? error.message : String(error)}
34+
{error instanceof Object && 'message' in error ? String(error.message) : String(error)}
3535
<br />
3636
{errorDetails && (
3737
<pre>

src/generic/alert-message/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { Alert } from '@openedx/paragon';
33

44
interface Props extends React.ComponentPropsWithoutRef<typeof Alert> {
5-
title?: string | React.ReactNode;
5+
title?: string;
66
description?: string | React.ReactNode;
77
}
88

0 commit comments

Comments
 (0)