mirror of
https://github.com/balzack/databag.git
synced 2025-05-05 07:55:15 +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 { useConversation } from './useConversation.hook';
|
||||||
import { IconX } from '@tabler/icons-react'
|
import { IconX } from '@tabler/icons-react'
|
||||||
import { Text } from '@mantine/core'
|
import { Text } from '@mantine/core'
|
||||||
import { Topic } from '../topic/Topic';
|
import { Message } from '../message/Message';
|
||||||
|
|
||||||
export function Conversation() {
|
export function Conversation() {
|
||||||
const { state, actions } = useConversation();
|
const { state, actions } = useConversation();
|
||||||
@ -16,10 +16,9 @@ export function Conversation() {
|
|||||||
|
|
||||||
const topics = state.topics.map((topic, idx) => {
|
const topics = state.topics.map((topic, idx) => {
|
||||||
return (
|
return (
|
||||||
<Topic
|
<Message
|
||||||
key={idx}
|
key={idx}
|
||||||
topic={topic}
|
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