Skip to content

Commit

Permalink
don't show during connector setup (yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
teallarson committed Jan 17, 2023
1 parent b310fc9 commit 091cea4
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import { useAvailableConnectorDefinitions } from "hooks/domain/connector/useAvai
import { useExperiment } from "hooks/services/Experiment";
import { useModalService } from "hooks/services/Modal";
import { useCurrentWorkspace } from "hooks/services/useWorkspace";
import { InlineEnrollmentCallout } from "packages/cloud/components/experiments/FreeConnectorProgram/InlineEnrollmentCallout";
import { useDocumentationPanelContext } from "views/Connector/ConnectorDocumentationLayout/DocumentationPanelContext";
import RequestConnectorModal from "views/Connector/RequestConnectorModal";

Expand Down Expand Up @@ -128,6 +127,7 @@ export const ConnectorDefinitionTypeControl: React.FC<ConnectorDefinitionTypeCon

const workspace = useCurrentWorkspace();
const orderOverwrite = useExperiment("connector.orderOverwrite", {});

const connectorDefinitions = useAvailableConnectorDefinitions(availableConnectorDefinitions, workspace);

const sortedDropDownData = useMemo(
Expand Down Expand Up @@ -204,10 +204,7 @@ export const ConnectorDefinitionTypeControl: React.FC<ConnectorDefinitionTypeCon
{selectedConnectorDefinition &&
(selectedConnectorDefinition.releaseStage === ReleaseStage.alpha ||
selectedConnectorDefinition.releaseStage === ReleaseStage.beta) && (
<>
<InlineEnrollmentCallout />
<WarningMessage stage={selectedConnectorDefinition.releaseStage} />
</>
<WarningMessage stage={selectedConnectorDefinition.releaseStage} />
)}
</>
);
Expand Down

0 comments on commit 091cea4

Please sign in to comment.