mirror of
https://github.com/balzack/databag.git
synced 2025-04-23 18:15:19 +00:00
testing virtualized list
This commit is contained in:
parent
6390801778
commit
1ed9991ab2
@ -4,7 +4,7 @@ import classes from './Conversation.module.css'
|
||||
import { useConversation } from './useConversation.hook';
|
||||
import { IconX } from '@tabler/icons-react'
|
||||
import { Text } from '@mantine/core'
|
||||
import { Topic } from '../topic/Topic';
|
||||
import { Message } from '../message/Message';
|
||||
|
||||
export function Conversation() {
|
||||
const { state, actions } = useConversation();
|
||||
@ -16,10 +16,9 @@ export function Conversation() {
|
||||
|
||||
const topics = state.topics.map((topic, idx) => {
|
||||
return (
|
||||
<Topic
|
||||
<Message
|
||||
key={idx}
|
||||
topic={topic}
|
||||
className={classes.topic}
|
||||
/>
|
||||
)
|
||||
})
|
||||
|
5
app/client/web/src/message/Message.tsx
Normal file
5
app/client/web/src/message/Message.tsx
Normal file
@ -0,0 +1,5 @@
|
||||
import { Topic } from 'databag-client-sdk';
|
||||
|
||||
export function Message({ topic }: { topic: Topic}) {
|
||||
return <div>CREATED: { topic.created }</div>
|
||||
}
|
13040
app/client/web/yarn.lock
13040
app/client/web/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user