working tweets skeleton

This commit is contained in:
erik-sn committed 2020-09-27 14:42:14 -04:00
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 = () => {