mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
working typescript version
This commit is contained in:
1 parent
581d6011e0
commit
cff746aa38
119 files changed
+247
-189
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import React, { useEffect } from "react";
|
||||
|
||||
import Nui from "../../../../os/nui-events/utils/Nui";
|
||||
import { useTweets } from "../../hooks/useTweets";
|
||||
import TweetList from "./TweetList";
|
||||
|
||||
export function TweetListContainer() {
|
||||
const { tweets } = useTweets();
|
||||
|
||||
useEffect(() => {
|
||||
Nui.send("phone:fetchTweets", {});
|
||||
}, []);
|
||||
|
||||
return <TweetList tweets={tweets} />;
|
||||
}
|
||||
|
||||
export default TweetListContainer;
|
||||
Reference in new issue
Block a user