mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
working typescript compiling and fixing linting issues
This commit is contained in:
1 parent
b1babd88c2
commit
3273d192c9
49 files changed
+271
-110
No files matched your search
@@ -24,7 +24,7 @@ function TwitterSearch() {
|
||||
const classes = useStyles();
|
||||
const { t } = useTranslation();
|
||||
const [searchValue, setSearchValue] = useState("");
|
||||
const { tweets, setTweets } = useFilteredTweets();
|
||||
const { tweets } = useFilteredTweets();
|
||||
|
||||
const handleChange = (e) => setSearchValue(e.target.value);
|
||||
|
||||
@@ -35,6 +35,8 @@ function TwitterSearch() {
|
||||
Nui.send("phone:fetchTweetsFiltered", cleanedSearchValue);
|
||||
};
|
||||
|
||||
const filteredTweets = tweets || [];
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className={classes.root}>
|
||||
@@ -49,7 +51,7 @@ function TwitterSearch() {
|
||||
inputRef={(input) => input && input.focus()}
|
||||
/>
|
||||
</div>
|
||||
{tweets && tweets.length > 0 && <TweetList tweets={tweets} />}
|
||||
{filteredTweets.length > 0 && <TweetList tweets={tweets} />}
|
||||
</div>
|
||||
<SearchButton handleClick={handleSubmit} />
|
||||
</>
|
||||
|
||||
Reference in new issue
Block a user