Skip to content

Commit

Permalink
Remove unused imports and components in explore
Browse files Browse the repository at this point in the history
page
  • Loading branch information
thebkht committed Nov 29, 2023
1 parent 7f447c1 commit b9f83a7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions app/(Main)/explore/page.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@
import { EmptyPlaceholder } from "@/components/empty-placeholder"
import Posts from "@/components/explore/posts"
import Search from "@/components/explore/search"
import { getSessionUser } from "@/components/get-session-user"
import { Icons } from "@/components/icon"
import { Card, CardContent, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"
import { Input } from "@/components/ui/input"
import { getPosts } from "@/lib/prisma/posts"
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"
import Link from "next/link"
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
import { redirect } from "next/navigation"
import { Hash } from "lucide-react"
import { getUsers } from "@/lib/prisma/users"
import { Separator } from "@/components/ui/separator"
import { Button } from "@/components/ui/button"
import UserHoverCard from "@/components/user-hover-card"
import { searchTags } from "@/lib/prisma/tags"
import { Badge } from "@/components/ui/badge"
import ExploreComponent from "@/components/explore/tab-content"
import ExploreTab from "@/components/explore/tab"
import Users from "@/components/explore/users"
Expand Down
2 changes: 1 addition & 1 deletion components/explore/tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function ExploreTab({ activeTab = 'top', search }: { activeTab?:
Users
</Link>
</TabsTrigger>
<TabsTrigger value={'tags'} className="bg-muted data-[state=active]:border data-[state=active]:border-foreground" asChild>
<TabsTrigger value={'tags'} className="bg-muted data-[state=active]:bg-secondary-foreground data-[state=active]shadow-sm data-[state=active]:text-secondary" asChild>
<Link href={`/explore?tab=tags${search !== undefined ? `&search=${search}` : ''}`}>
Tags
</Link>
Expand Down

0 comments on commit b9f83a7

Please sign in to comment.