mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Adjust the style of the home page #3321 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
15
web/src/pages/home/chat-list.tsx
Normal file
15
web/src/pages/home/chat-list.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
import { useFetchNextDialogList } from '@/hooks/chat-hooks';
|
||||
import { ApplicationCard } from './application-card';
|
||||
|
||||
export function ChatList() {
|
||||
const { data } = useFetchNextDialogList();
|
||||
|
||||
return data
|
||||
.slice(0, 10)
|
||||
.map((x) => (
|
||||
<ApplicationCard
|
||||
key={x.id}
|
||||
app={{ avatar: x.icon, title: x.name, update_time: x.update_time }}
|
||||
></ApplicationCard>
|
||||
));
|
||||
}
|
||||
Reference in New Issue
Block a user