linter
This commit is contained in:
parent
08f441c0e5
commit
071a861a43
6 changed files with 12 additions and 9 deletions
|
|
@ -6,8 +6,7 @@ import {
|
|||
|
||||
type Nudge = string;
|
||||
|
||||
const DEFAULT_NUDGES = [
|
||||
];
|
||||
const DEFAULT_NUDGES: Nudge[] = [];
|
||||
|
||||
export const useGetNudgesQuery = (
|
||||
chatId?: string | null,
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ export default function ConnectorsPage() {
|
|||
selectedFiles={selectedFiles}
|
||||
isAuthenticated={false} // This would come from auth context in real usage
|
||||
accessToken={undefined} // This would come from connected account
|
||||
isIngesting={isSyncing}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -83,13 +83,13 @@ function ChunksPageContent() {
|
|||
}, [data, filename]);
|
||||
|
||||
// Set selected state for all checkboxes when selectAll changes
|
||||
useEffect(() => {
|
||||
if (selectAll) {
|
||||
setSelectedChunks(new Set(chunks.map((_, index) => index)));
|
||||
} else {
|
||||
setSelectedChunks(new Set());
|
||||
}
|
||||
}, [selectAll, setSelectedChunks, chunks]);
|
||||
// useEffect(() => {
|
||||
// if (selectAll) {
|
||||
// setSelectedChunks(new Set(chunks.map((_, index) => index)));
|
||||
// } else {
|
||||
// setSelectedChunks(new Set());
|
||||
// }
|
||||
// }, [selectAll, setSelectedChunks, chunks]);
|
||||
|
||||
const handleBack = useCallback(() => {
|
||||
router.push("/knowledge");
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@ interface Connector {
|
|||
connectionId?: string;
|
||||
access_token?: string;
|
||||
selectedFiles?: GoogleDriveFile[] | OneDriveFile[];
|
||||
available?: boolean;
|
||||
}
|
||||
|
||||
interface SyncResult {
|
||||
|
|
|
|||
|
|
@ -283,6 +283,7 @@ export function CloudConnectorsDialog({
|
|||
accessToken={connectorAccessTokens[connector.type]}
|
||||
onPickerStateChange={() => {}}
|
||||
clientId={connector.clientId}
|
||||
isIngesting={false}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ import {
|
|||
import { useAuth } from "@/contexts/auth-context";
|
||||
|
||||
// Task interface is now imported from useGetTasksQuery
|
||||
export type { Task };
|
||||
|
||||
export interface TaskFile {
|
||||
filename: string;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue