mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
working tweets skeleton
This commit is contained in:
1 parent
2f52579635
commit
b2b69365ba
5 files changed
+47
-14
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import React, { useState, useEffect } from "react";
|
||||
import React, { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { makeStyles } from "@material-ui/core/styles";
|
||||
import { TextField } from "@material-ui/core";
|
||||
@@ -6,7 +6,6 @@ import TweetList from "./TweetList";
|
||||
|
||||
import Nui from "../../../os/nui-events/utils/Nui";
|
||||
import SearchButton from "./SearchButton";
|
||||
import { useTweets } from "../hooks/useTweets";
|
||||
import { useFilteredTweets } from "../hooks/useFilteredTweets";
|
||||
|
||||
const useStyles = makeStyles({
|
||||
@@ -27,10 +26,6 @@ function TwitterSearch() {
|
||||
const [searchValue, setSearchValue] = useState("");
|
||||
const { tweets, setTweets } = useFilteredTweets();
|
||||
|
||||
useEffect(() => {
|
||||
setTweets(null); // clear the filtered tweets on app load
|
||||
});
|
||||
|
||||
const handleChange = (e) => setSearchValue(e.target.value);
|
||||
|
||||
const handleSubmit = () => {
|
||||
|
||||
Reference in new issue
Block a user