-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fixes issue #6267: Hide Navigation Tabs if Single connected Account #6277
Conversation
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.
PR Summary
- Conditional display of
TabList
inpackages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsCalendarChannelsContainer.tsx
- Conditional display of
TabList
inpackages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsMessageChannelsContainer.tsx
- Hides navigation tabs if only one connected account is present
- Improves UI by removing unnecessary elements when only one account is connected
2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
Welcome!
Hello there, congrats on your first PR! We're excited to have you contributing to this project. |
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.
Hi @ViditJain123 thanks for the PR, I have left comments :)
tabListId={SETTINGS_ACCOUNT_CALENDAR_CHANNELS_TAB_LIST_COMPONENT_ID} | ||
tabs={tabs} | ||
/> | ||
<div style={{ display: hasMultipleAccounts ? 'block' : 'none' }}> |
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.
@ViditJain123 In React we should do something like {hasMultipleAccounts && <TabList ... />}
Actually @ViditJain123, I've just noticed that another PR was opened by @adithej and that they was assigned on the ticket. I'll prioritize their PR and close this one, sorry about that. Feel free to work on any non-assigned good first issue :) |
I wrapped the TabList with a div and have added conditional display property to make it visible only when we have move than one email address. This fixed the issue. I waiting for the review. :)