-
Notifications
You must be signed in to change notification settings - Fork 3
Change/upgraded to react18 CMEM-6639 #335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from 9 commits
ad360d9
f8a22eb
919bca3
ef6fede
f8edf61
e7ab6a0
2491c21
67bb694
47395f9
52bd09a
b921c68
8764a22
432f99d
80161ac
bfcbe84
60624bd
c8b3703
24d10e0
54fbae9
28457be
23720eb
dcdbc36
b06bec7
aff9553
c0daf9a
a6bffc2
c17f5b7
800e09e
6205dcf
cb5b504
40aeb01
8b792d5
7b093dd
bb7b621
a65c4a8
6940791
cf1a50c
3a5f28d
6307ab2
31eb14e
d176040
80aa2ba
a9b3706
7fa47cf
1decd25
041eea9
f45a4d6
e61fa1b
8cce938
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,7 +60,13 @@ export const ApplicationTitle = ({ | |
| <span className={`${eccgui}-application__title--content`}> | ||
| {!!depiction && ( | ||
| <> | ||
| <span className={`${eccgui}-application__title--depiction`}>{depiction}</span> | ||
| <span className={`${eccgui}-application__title--depiction`}> | ||
| {React.isValidElement(depiction) | ||
| ? depiction | ||
| : depiction instanceof HTMLElement | ||
| ? <>{depiction.outerHTML}</> | ||
| : depiction} | ||
| </span> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why should land a HTMLElement here?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is how the depiction parameter has been defined years ago. With the React upgrade this turned into a type error. Can the |
||
| </> | ||
| )} | ||
| {!!prefix && ( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.