Skip to content

Commit

Permalink
chore: remove unused imports and components
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 committed Apr 3, 2024
1 parent d34c9b3 commit a219378
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 56 deletions.
1 change: 0 additions & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Button, buttonVariants } from "@/components/ui/button";
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
Expand Down
42 changes: 0 additions & 42 deletions components/DropdownComponent.tsx

This file was deleted.

3 changes: 1 addition & 2 deletions components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { FaGithub, FaEnvelopeOpenText } from "react-icons/fa6";
import { FaGithub } from "react-icons/fa6";

const Footer = () => {
return (
Expand All @@ -20,7 +20,6 @@ const Footer = () => {
>
<FaGithub />
</a>
{/* <FaEnvelopeOpenText /> */}
</div>
</div>
</div>
Expand Down
5 changes: 0 additions & 5 deletions components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Link from "next/link";
import React from "react";
import { FaUser } from "react-icons/fa";

const Header = () => {
return (
Expand All @@ -9,10 +8,6 @@ const Header = () => {
<div className="text-4xl font-bold text-primary sm:text-5xl">
<Link href="/">GE-Z</Link>
</div>

{/* <div className="flex h-12 w-12 place-content-center items-center rounded-full border-2 border-primary border-opacity-40 text-2xl shadow-xl md:h-16 md:w-16 md:text-3xl">
<FaUser />
</div> */}
</nav>
</>
);
Expand Down
3 changes: 0 additions & 3 deletions components/search/Search.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -337,7 +336,6 @@ const Search = () => {
{loading ? (
<div className="mt-16 flex flex-col gap-2 text-2xl">
<div className="flex justify-center">
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src="/loading.gif"
alt="loading gif"
Expand All @@ -351,7 +349,6 @@ const Search = () => {
) : error ? (
<div className="mt-16 flex flex-col gap-2 text-2xl">
<div className="flex justify-center">
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src="/error.png"
alt="error"
Expand Down
3 changes: 1 addition & 2 deletions components/search/SearchResults.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import LazyLoad from "react-lazy-load";
// import LazyLoad from "react-lazy-load";
import { FaUpRightFromSquare } from "react-icons/fa6";
import { CollegeObject } from "./Search";
import Tags from "./Tags";
Expand Down Expand Up @@ -134,7 +134,6 @@ const SearchResults = (props: SearchResultsProps) => {
) : (
<div className="flex flex-col gap-2 text-2xl">
<div className="flex justify-center">
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src="/no_results.png"
alt="no results"
Expand Down
6 changes: 5 additions & 1 deletion components/search/Tags.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import React from "react";
import { FaChalkboard, FaAward, FaHandHoldingDollar } from "react-icons/fa6";

const Tags = (props: any) => {
interface TagsProps {
tag: string;
}

const Tags = (props: TagsProps) => {
const { tag } = props;

if (tag == "Online Tutoring") {
Expand Down

0 comments on commit a219378

Please sign in to comment.