Fix: Fixed the issue where the agent and chat cards on the home page could not be deleted #3221 (#9864)

### What problem does this PR solve?

Fix: Fixed the issue where the agent and chat cards on the home page
could not be deleted #3221

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2025-09-02 11:10:57 +08:00
committed by GitHub
parent 79968c37a8
commit 757c5376be
3 changed files with 90 additions and 24 deletions

View File

@ -1,4 +1,3 @@
import { MoreButton } from '@/components/more-button';
import { RAGFlowAvatar } from '@/components/ragflow-avatar';
import { Card, CardContent } from '@/components/ui/card';
import { formatDate } from '@/utils/date';
@ -11,9 +10,14 @@ type ApplicationCardProps = {
update_time: number;
};
onClick?(): void;
moreDropdown: React.ReactNode;
};
export function ApplicationCard({ app, onClick }: ApplicationCardProps) {
export function ApplicationCard({
app,
onClick,
moreDropdown,
}: ApplicationCardProps) {
return (
<Card className="w-[264px]" onClick={onClick}>
<CardContent className="p-2.5 group flex justify-between">
@ -32,8 +36,7 @@ export function ApplicationCard({ app, onClick }: ApplicationCardProps) {
</p>
</div>
</div>
<MoreButton className=""></MoreButton>
{moreDropdown}
</CardContent>
</Card>
);