mirror of
https://github.com/infinilabs/coco-app.git
synced 2025-12-19 04:49:25 +01:00
refactor: update
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user