mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-02-04 01:25:07 +08:00
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:
@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user