-
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
Hide Navigation Tabs if Single connected Account #6267
Comments
Modify export const SettingsAccountsMessageChannelsContainer = () => {
// ... existing code ...
if (!messageChannels.length) {
return <SettingsAccountsListEmptyStateCard />;
}
const hasMultipleAccounts = accounts.length > 1;
return (
<>
{hasMultipleAccounts && (
<TabList
tabListId={SETTINGS_ACCOUNT_MESSAGE_CHANNELS_TAB_LIST_COMPONENT_ID}
tabs={tabs}
/>
)}
{messageChannels.map((messageChannel) => (
<React.Fragment key={messageChannel.id}>
{messageChannel.id === activeTabId && (
<SettingsAccountsMessageChannelDetails
messageChannel={messageChannel}
/>
)}
</React.Fragment>
))}
</>
);
}; References/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsMessageChannelsContainer.tsx
|
Hi, I am interested in working on this, please assign me |
Sure @adithej, thanks for contributing! |
I have created a pull request addressing this issue here |
@charlesBochet CMIIR, but I think we can close this one as the related MR is already merged. |
Yes , it's been merged , refer : #6274 |
We should hide the navigation tabs that allow switching between different email/calendar accounts when the user has only connected one account:
The text was updated successfully, but these errors were encountered: