refactor: update

This commit is contained in:
ayang
2025-12-12 10:42:14 +08:00
parent ddaf069c79
commit e4fffbf3c8

View File

@@ -20,6 +20,7 @@ import { AssistantFetcher } from "./AssistantFetcher";
import AssistantItem from "./AssistantItem"; import AssistantItem from "./AssistantItem";
import Pagination from "@/components/Common/Pagination"; import Pagination from "@/components/Common/Pagination";
import { useSearchStore } from "@/stores/searchStore"; import { useSearchStore } from "@/stores/searchStore";
import { Button } from "../ui/button";
interface AssistantListProps { interface AssistantListProps {
assistantIDs?: string[]; assistantIDs?: string[];
@@ -212,9 +213,11 @@ export function AssistantList({ assistantIDs = [] }: AssistantListProps) {
{t("assistant.popover.title")}{pagination.total} {t("assistant.popover.title")}{pagination.total}
</div> </div>
<button <Button
variant="outline"
size="icon"
onClick={handleRefresh} onClick={handleRefresh}
className="flex items-center justify-center size-6 bg-background rounded-lg border border-input" className="size-6"
disabled={isRefreshing} disabled={isRefreshing}
> >
<VisibleKey shortcut="R" onKeyPress={handleRefresh}> <VisibleKey shortcut="R" onKeyPress={handleRefresh}>
@@ -227,7 +230,7 @@ export function AssistantList({ assistantIDs = [] }: AssistantListProps) {
)} )}
/> />
</VisibleKey> </VisibleKey>
</button> </Button>
</div> </div>
<VisibleKey <VisibleKey