Skip to content
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

Fix 6428/chat open on clicking dropdown #6429

Merged
merged 8 commits into from
Jul 29, 2024
Merged

Fix 6428/chat open on clicking dropdown #6429

merged 8 commits into from
Jul 29, 2024

Conversation

NitinPSingh
Copy link
Contributor

This issue was caused due to last comomit on issue by me only fix_6127/support_button_updated

I had fixed the chat opening problem , in this commit

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

The pull request addresses the issue of the chat opening when clicking the dropdown by replacing the SupportChat component with the SupportDropdown component and making related updates.

  • AppNavigationDrawer.tsx: Replaced SupportChat with SupportDropdown in the navigation drawer footer.
  • SupportButton.tsx: Renamed from SupportChat, added isClickAble prop, and updated the onClick handler.
  • SupportButtonSkeletonLoader.tsx: Renamed from SupportChatSkeletonLoader for clarity.
  • SupportDropdown.tsx: Introduced a new SupportDropdown component with options for 'Talk to us' and 'Documentation'.
  • SettingsBilling.tsx: Replaced SupportChat with SupportButton and set it to display: none to prevent interference.

7 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings

dropdownId={dropdownId}
dropdownPlacement="top-start"
dropdownOffset={{ x: 0, y: -28 }}
clickableComponent={<SupportButton isClickAble={false} />}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style: Consider renaming isClickAble to isClickable for consistency.

Copy link
Member

@charlesBochet charlesBochet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@charlesBochet charlesBochet merged commit 0fd3c8b into twentyhq:main Jul 29, 2024
8 of 11 checks passed
Copy link

Thanks @NitinPSingh for your contribution!
This marks your 0th PR on the repo. You're top 0% of all our contributors 🎉
See contributor page - Share on LinkedIn - Share on Twitter

Contributions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants