Update dependencies and import paths

This commit is contained in:
n4ze3m
2024-02-23 23:25:17 +05:30
parent 743f8d4d36
commit 1c980c4059
38 changed files with 450 additions and 6042 deletions

View File

@@ -1,20 +1,18 @@
import React, { useState } from "react"
import { CogIcon } from "@heroicons/react/24/outline"
import { useLocation, NavLink } from "react-router-dom"
import { Sidebar } from "./Sidebar"
import { Drawer, Layout, Modal, Select, Tooltip } from "antd"
import { useQuery } from "@tanstack/react-query"
import { fetchModels } from "~services/ollama"
import { fetchChatModels } from "~services/ollama"
import { useMessageOption } from "~hooks/useMessageOption"
import {
GithubIcon,
PanelLeftIcon,
BrainCircuit,
SquarePen,
ChevronLeft
} from "lucide-react"
import { Settings } from "./Settings"
import { GithubIcon } from "~icons/GithubIcon"
import { PanelLeftIcon } from "~icons/PanelLeftIcon"
import { BrainCircuit } from "~icons/BrainCircuit"
import { SquarePen } from "~icons/SquarePen"
import { ChevronLeft } from "~icons/ChevronLeft"
import { CogIcon } from "~icons/CogIcon"
export default function OptionLayout({
children
@@ -30,7 +28,7 @@ export default function OptionLayout({
isFetching: isModelsFetching
} = useQuery({
queryKey: ["fetchModel"],
queryFn: fetchModels,
queryFn: fetchChatModels,
refetchInterval: 15000
})