MCPcopy Create free account
hub / github.com/sqlchat/sqlchat / toggleCreateConnectionModal

Function toggleCreateConnectionModal

src/components/Sidebar/ConnectionList.tsx:27–33  ·  view source on GitHub ↗
(show = true)

Source from the content-addressed store, hash-verified

25 const currentConnectionCtx = connectionStore.currentConnectionCtx;
26
27 const toggleCreateConnectionModal = (show = true) => {
28 setState({
29 ...state,
30 showCreateConnectionModal: show,
31 });
32 setEditConnectionModalContext(undefined);
33 };
34
35 const handleConnectionSelect = async (connection: Connection) => {
36 const databaseList = await connectionStore.getOrFetchDatabaseList(connection);

Callers 1

ConnectionListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected