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
feat(buttons-actions): add tooltip #402
Conversation
A preview environment was automatically created via Qovery. Another comment will be posted when deployments are terminated |
☁️ Nx Cloud ReportCI is running/has finished running commands for commit b33e7af. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 2 targetsSent with 💌 from NxCloud. |
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.
Just a little naming changes. What do you think ?
@@ -24,6 +27,20 @@ export function ButtonIconActionElement(props: ButtonIconActionElementProps) { | |||
|
|||
const [open, setOpen] = useState(false) | |||
|
|||
const hasTooltip = (content: React.ReactNode, withRightBorder = false) => { |
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.
The naming of this is a little bit weird. It looks like it's just a boolean check and at the end it prints some dom.
Could not it be tooltipWrapper
or something like this?
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.
Yes it's better, I'll fix it thanks !!
🎉 This PR is included in version 1.3.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
What does this PR do?
PR Checklist
Global
Store
NX
feature
,ui
,data
,utils
Clean Code