-
Notifications
You must be signed in to change notification settings - Fork 16
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
IBX-7525: UDW as npm package #1062
Conversation
f5655e8
to
84192a0
Compare
ceea777
to
9528601
Compare
if (props.extraClasses) { | ||
className = `${className} ${props.extraClasses}`; | ||
} | ||
const includedIcon = props.useIncludedIcon || window.origin !== instanceUrl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isIncludedIcon
/hasIncludedIcon
would probably be better name :)
return ( | ||
<> | ||
<IconComponent className={cssClass} /> | ||
</> | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return ( | |
<> | |
<IconComponent className={cssClass} /> | |
</> | |
); | |
return <IconComponent className={cssClass} />; |
import { getIconPath } from '@ibexa-admin-ui/src/bundle/Resources/public/js/scripts/helpers/icon.helper'; | ||
|
||
const UrlIcon = (props) => { | ||
const linkHref = props.customPath ? props.customPath : getIconPath(props.name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const linkHref = props.customPath ? props.customPath : getIconPath(props.name); | |
const linkHref = props.customPath ?? getIconPath(props.name); |
181068e
to
245bc8d
Compare
245bc8d
to
1ebad2d
Compare
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Checklist:
$ composer fix-cs
)