mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 05:13:43 +00:00
Type fix
This commit is contained in:
+2
-2
@@ -1,10 +1,10 @@
|
||||
import { TGitlabSync } from "@app/hooks/api/secretSyncs/types/gitlab-sync";
|
||||
import { TGitLabSync } from "@app/hooks/api/secretSyncs/types/gitlab-sync";
|
||||
|
||||
import { getSecretSyncDestinationColValues } from "../helpers";
|
||||
import { SecretSyncTableCell } from "../SecretSyncTableCell";
|
||||
|
||||
type Props = {
|
||||
secretSync: TGitlabSync;
|
||||
secretSync: TGitLabSync;
|
||||
};
|
||||
|
||||
export const GitLabSyncDestinationCol = ({ secretSync }: Props) => {
|
||||
|
||||
+3
-3
@@ -5,7 +5,7 @@ import {
|
||||
GitHubSyncScope,
|
||||
GitHubSyncVisibility
|
||||
} from "@app/hooks/api/secretSyncs/types/github-sync";
|
||||
import { GitlabSyncScope } from "@app/hooks/api/secretSyncs/types/gitlab-sync";
|
||||
import { GitLabSyncScope } from "@app/hooks/api/secretSyncs/types/gitlab-sync";
|
||||
import { HumanitecSyncScope } from "@app/hooks/api/secretSyncs/types/humanitec-sync";
|
||||
|
||||
// This functional ensures parity across what is displayed in the destination column
|
||||
@@ -130,10 +130,10 @@ export const getSecretSyncDestinationColValues = (secretSync: TSecretSync) => {
|
||||
secondaryText = "App ID";
|
||||
break;
|
||||
case SecretSync.GitLab:
|
||||
if (destinationConfig.scope === GitlabSyncScope.Project) {
|
||||
if (destinationConfig.scope === GitLabSyncScope.Project) {
|
||||
primaryText = destinationConfig.projectName;
|
||||
secondaryText = destinationConfig.projectId;
|
||||
} else if (destinationConfig.scope === GitlabSyncScope.Group) {
|
||||
} else if (destinationConfig.scope === GitLabSyncScope.Group) {
|
||||
primaryText = destinationConfig.groupName;
|
||||
secondaryText = destinationConfig.groupId;
|
||||
} else {
|
||||
|
||||
+4
-4
@@ -1,8 +1,8 @@
|
||||
import { GenericFieldLabel } from "@app/components/secret-syncs";
|
||||
import { GitlabSyncScope, TGitlabSync } from "@app/hooks/api/secretSyncs/types/gitlab-sync";
|
||||
import { GitLabSyncScope, TGitLabSync } from "@app/hooks/api/secretSyncs/types/gitlab-sync";
|
||||
|
||||
type Props = {
|
||||
secretSync: TGitlabSync;
|
||||
secretSync: TGitLabSync;
|
||||
};
|
||||
|
||||
export const GitLabSyncDestinationSection = ({ secretSync }: Props) => {
|
||||
@@ -17,7 +17,7 @@ export const GitLabSyncDestinationSection = ({ secretSync }: Props) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
{secretSync.destinationConfig.scope === GitlabSyncScope.Project && (
|
||||
{secretSync.destinationConfig.scope === GitLabSyncScope.Project && (
|
||||
<>
|
||||
<GenericFieldLabel label="Project Name">
|
||||
{secretSync.destinationConfig.projectName}
|
||||
@@ -27,7 +27,7 @@ export const GitLabSyncDestinationSection = ({ secretSync }: Props) => {
|
||||
</GenericFieldLabel>
|
||||
</>
|
||||
)}
|
||||
{secretSync.destinationConfig.scope === GitlabSyncScope.Group && (
|
||||
{secretSync.destinationConfig.scope === GitLabSyncScope.Group && (
|
||||
<>
|
||||
<GenericFieldLabel label="Group Name">
|
||||
{secretSync.destinationConfig.groupName}
|
||||
|
||||
+2
-2
@@ -4,7 +4,7 @@ import { useNavigate, useSearch } from "@tanstack/react-router";
|
||||
import { ROUTE_PATHS } from "@app/const/routes";
|
||||
import { useWorkspace } from "@app/context";
|
||||
import { useCreateAppConnection, useUpdateAppConnection } from "@app/hooks/api/appConnections";
|
||||
import { GitlabConnectionMethod } from "@app/hooks/api/appConnections/types/gitlab-connection";
|
||||
import { GitLabConnectionMethod } from "@app/hooks/api/appConnections/types/gitlab-connection";
|
||||
|
||||
export const GitLabOAuthCallbackPage = () => {
|
||||
const navigate = useNavigate();
|
||||
@@ -49,7 +49,7 @@ export const GitLabOAuthCallbackPage = () => {
|
||||
// Prepare app connection data with OAuth credentials
|
||||
const connectionData = {
|
||||
...formData,
|
||||
method: GitlabConnectionMethod.OAuth,
|
||||
method: GitLabConnectionMethod.OAuth,
|
||||
credentials: {
|
||||
code: code as string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user