diff --git a/moon/apps/web/components/DiffView/FileDiff.tsx b/moon/apps/web/components/DiffView/FileDiff.tsx index 81f31fb99..8cd6f8297 100644 --- a/moon/apps/web/components/DiffView/FileDiff.tsx +++ b/moon/apps/web/components/DiffView/FileDiff.tsx @@ -1,7 +1,7 @@ import { useEffect, useMemo, useRef, useState } from 'react' import { DiffFile, DiffModeEnum, DiffView } from '@git-diff-view/react' -import { CommonResultFilesChangedPage, DiffItem } from '@gitmono/types/generated' +import { CommonResultFilesChangedPage } from '@gitmono/types/generated' import { ExpandIcon, SparklesIcon } from '@gitmono/ui/Icons' import { cn } from '@gitmono/ui/src/utils' @@ -9,6 +9,8 @@ import { parsedDiffs } from '@/components/DiffView/parsedDiffs' import StableTreeView from './StableTreeView' +import { DiffItem } from './parsedDiffs' + function calculateDiffStatsFromRawDiff(diffText: string): { additions: number; deletions: number } { const lines = diffText.split('\n') diff --git a/moon/apps/web/components/DiffView/parsedDiffs.ts b/moon/apps/web/components/DiffView/parsedDiffs.ts index 208e576c0..956f1abc3 100644 --- a/moon/apps/web/components/DiffView/parsedDiffs.ts +++ b/moon/apps/web/components/DiffView/parsedDiffs.ts @@ -1,4 +1,7 @@ -import { DiffItem } from "@gitmono/types/generated" +export interface DiffItem { + data: string + path: string +} const extensionToLangMap: Record = { // Note that the key here is lowercase diff --git a/moon/apps/web/components/Setting/GPGKeys.tsx b/moon/apps/web/components/Setting/GPGKeys.tsx index c5e089036..f1f8194ad 100644 --- a/moon/apps/web/components/Setting/GPGKeys.tsx +++ b/moon/apps/web/components/Setting/GPGKeys.tsx @@ -78,7 +78,6 @@ const NewGPGKeyDialog = ({ open, setOpen }: NewGPGKeyDialogProps) => { postGPGKey( { data: { - expires_days: 10, gpg_content: normalizedGpgContent } }, diff --git a/moon/apps/web/hooks/useMrFilesChanged.ts b/moon/apps/web/hooks/useMrFilesChanged.ts index f9a989d85..a17bdc544 100644 --- a/moon/apps/web/hooks/useMrFilesChanged.ts +++ b/moon/apps/web/hooks/useMrFilesChanged.ts @@ -11,6 +11,7 @@ export function useMrFilesChanged( queryKey: [ ...legacyApiClient.v1.postApiMrFilesChanged().requestKey(link), data, + params ], queryFn: () => legacyApiClient.v1.postApiMrFilesChanged().request(link, data, params)