-
Notifications
You must be signed in to change notification settings - Fork 247
chore(compass-connections): Move connection modal UI from compass-sidebar to compass-connections COMPASS-8471 #6508
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
Conversation
packages/compass-connections/src/stores/connections-store-redux.ts
Outdated
Show resolved
Hide resolved
|
|
||
| export default function WelcomeTab() { | ||
| const { createNewConnection } = useConnections(); | ||
| const { createNewConnection } = useConnectionActions(); |
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.
This one was a drive-by. I don't think there's any reason to use the deprecated useConnections() here.
| tab?: string | ||
| ): ConnectionsThunkAction<void> => { | ||
| return (_dispatch, _getState, { globalAppRegistry }) => { | ||
| globalAppRegistry.emit('open-compass-settings', tab); |
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.
| duplicateConnection, | ||
| saveEditedConnection, | ||
| toggleConnectionFavoritedStatus, | ||
| toggleFavoritedConnectionStatus, |
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.
was toggleConnectionFavoritedStatus in useConnections
| data-theme={darkMode ? 'Dark' : 'Light'} | ||
| > | ||
| <Home {...props}></Home> | ||
| <HomeWithConnections {...props}></HomeWithConnections> |
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.
Hierarchy is now ThemedHome -> HomeWithConnections -> Home whereas it was HomeWithConnections -> ThemedHome -> Home.
This allows CompassConnections to be inside all the visual stuff but still wrap the rest of home and therefore the useSingleConnectionModeConnectionInfoStatus() hook still works for now.

No description provided.