Fix: Improve UI (#103)

* use sonner

* fix ui

* fix post audio player
This commit is contained in:
an-lee
2024-01-13 22:59:57 +08:00
committed by GitHub
parent d6a4b24a1e
commit fe0542e8c6
26 changed files with 210 additions and 204 deletions

View File

@@ -1,6 +1,6 @@
import { useContext, useEffect, useState } from "react";
import { AppSettingsProviderContext } from "@renderer/context";
import { ScrollArea } from "@renderer/components/ui";
import { ScrollArea, toast } from "@renderer/components/ui";
import { LoaderSpin } from "@renderer/components";
import { MessageCircleIcon } from "lucide-react";
@@ -20,11 +20,10 @@ export const ConversationsShortcut = (props: {
content: prompt,
})
.then((replies) => {
console.log(replies);
onReply(replies);
})
.catch((error) => {
console.error(error);
toast.error(error.message);
})
.finally(() => {
setLoading(false);