From 8689d24407e2217d81a84793b445a0bb49cdc343 Mon Sep 17 00:00:00 2001 From: Lily Delalande <119957291+lily-de@users.noreply.github.com> Date: Mon, 10 Mar 2025 11:23:46 -0700 Subject: [PATCH] chore: update types and imports (#1594) --- ui/desktop/src/components/BottomMenu.tsx | 2 +- .../src/components/settings/models/ModelRadioList.tsx | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/ui/desktop/src/components/BottomMenu.tsx b/ui/desktop/src/components/BottomMenu.tsx index 83cfbfaf..30ece268 100644 --- a/ui/desktop/src/components/BottomMenu.tsx +++ b/ui/desktop/src/components/BottomMenu.tsx @@ -4,7 +4,7 @@ import { useRecentModels } from './settings/models/RecentModels'; // Hook for re import { Sliders } from 'lucide-react'; import { ModelRadioList } from './settings/models/ModelRadioList'; import { Document, ChevronUp, ChevronDown } from './icons'; -import type { View } from '../ChatWindow'; +import type { View } from '../App'; import { getApiUrl, getSecretKey } from '../config'; import { BottomMenuModeSelection } from './BottomMenuModeSelection'; diff --git a/ui/desktop/src/components/settings/models/ModelRadioList.tsx b/ui/desktop/src/components/settings/models/ModelRadioList.tsx index 358f40cf..7fd4eac8 100644 --- a/ui/desktop/src/components/settings/models/ModelRadioList.tsx +++ b/ui/desktop/src/components/settings/models/ModelRadioList.tsx @@ -1,16 +1,8 @@ import React, { useState, useEffect } from 'react'; import { useRecentModels } from './RecentModels'; -import { useModel } from './ModelContext'; +import { useModel, Model } from './ModelContext'; import { useHandleModelSelection } from './utils'; import type { View } from '@/src/App'; -import { SettingsViewOptions } from '@/src/components/settings/SettingsView'; - -export interface Model { - id?: number; // Make `id` optional to allow user-defined models - name: string; - provider: string; - lastUsed?: string; -} interface ModelRadioListProps { renderItem: (props: {