diff --git a/app/page.tsx b/app/page.tsx index 1c273e5..c0f4ce6 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,7 +1,6 @@ import { Button, buttonVariants } from "@/components/ui/button"; import { Card, - CardContent, CardDescription, CardFooter, CardHeader, diff --git a/components/DropdownComponent.tsx b/components/DropdownComponent.tsx deleted file mode 100644 index 25b2ea3..0000000 --- a/components/DropdownComponent.tsx +++ /dev/null @@ -1,42 +0,0 @@ -import { ChangeEvent, useState } from "react"; -import { FaChevronDown } from "react-icons/fa"; - -export interface DropdownComponentProps { - defaultValue: string; - data: string[]; - onChange: any; // FIX ME -} - -export const DropdownComponentSearch = (props: DropdownComponentProps) => { - const { defaultValue, data, onChange } = props; - - const [value, setValue] = useState(defaultValue); - - const handleChange = (e: ChangeEvent) => { - onChange(e.target.value); - setValue(e.target.value); - }; - - return ( -
-
- -
- -
-
-
- ); -}; diff --git a/components/Footer.tsx b/components/Footer.tsx index 66c8d2e..226eafa 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { FaGithub, FaEnvelopeOpenText } from "react-icons/fa6"; +import { FaGithub } from "react-icons/fa6"; const Footer = () => { return ( @@ -20,7 +20,6 @@ const Footer = () => { > - {/* */} diff --git a/components/Header.tsx b/components/Header.tsx index ddfcd02..638efa3 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -1,6 +1,5 @@ import Link from "next/link"; import React from "react"; -import { FaUser } from "react-icons/fa"; const Header = () => { return ( @@ -9,10 +8,6 @@ const Header = () => {
GE-Z
- - {/*
- -
*/} ); diff --git a/components/search/Search.tsx b/components/search/Search.tsx index 03d1391..91ed6a9 100644 --- a/components/search/Search.tsx +++ b/components/search/Search.tsx @@ -1,7 +1,6 @@ "use client"; import React, { useEffect, useState } from "react"; -import { DropdownComponentSearch } from "../DropdownComponent"; import { SortDropdown } from "./FilterComponents"; import { useRouter, useSearchParams } from "next/navigation"; import { queryDatabase } from "./query-db"; @@ -337,7 +336,6 @@ const Search = () => { {loading ? (
- {/* eslint-disable-next-line @next/next/no-img-element */} loading gif { ) : error ? (
- {/* eslint-disable-next-line @next/next/no-img-element */} error { ) : (
- {/* eslint-disable-next-line @next/next/no-img-element */} no results { +interface TagsProps { + tag: string; +} + +const Tags = (props: TagsProps) => { const { tag } = props; if (tag == "Online Tutoring") {