mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Working database interactions and NUI callbacks
This commit is contained in:
1 parent
1e900baab9
commit
ba0f122938
19 files changed
+372
-127
No files matched your search
@@ -0,0 +1,21 @@
|
||||
import React from "react";
|
||||
|
||||
import { List } from "../../../ui/components/List";
|
||||
import { useTweets } from "../hooks/useTweets";
|
||||
import Tweet from "./Tweet";
|
||||
|
||||
export function TweetList() {
|
||||
const { tweets } = useTweets();
|
||||
console.log(tweets);
|
||||
return (
|
||||
<List>
|
||||
{tweets
|
||||
.filter((t) => t.visible)
|
||||
.map((tweet) => (
|
||||
<Tweet key={tweet.id} {...tweet} />
|
||||
))}
|
||||
</List>
|
||||
);
|
||||
}
|
||||
|
||||
export default TweetList;
|
||||
Reference in new issue
Block a user