Skip to content

Commit

Permalink
refactor: update import paths and remove unused PostListContainer com…
Browse files Browse the repository at this point in the history
…ponent
  • Loading branch information
ng-jayson committed Nov 22, 2024
1 parent 41ef497 commit 9ebdc0a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import useTagStore from "@/lib/state/useTagStore";
import { ChevronLeft, Search, X } from "lucide-react";
import { Tabs, TabsList, TabsTrigger } from "@/components/shared/tabs";
import PostForm from "@/app/explore/_components/post/post-form";
import PostList from "./post-list";
import UserList from "../user-list";
import PostList from "@/app/explore/_components/post/post-list";
import UserList from "@/app/explore/_components/user-list";
import { Input } from "@/components/shared/input";

interface PostListContainerProps {
Expand Down Expand Up @@ -187,7 +187,7 @@ const PostListContainer: React.FC<PostListContainerProps> = ({
{(selectedOption === -3 || selectedOption === -2) && (
<div className="flex flex-col gap-2">
<Tabs value={selectedTab} className="flex w-full">
<TabsList className="flex w-full space-x-4">
<TabsList className="flex w-full space-x-3">
{ExploreTabList.map((item, i) => {
if (item.name === "Following" && !currentUser) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion app/explore/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { getCurrentUser } from "@/lib/actions/user";
import prisma from "@/lib/prismadb";

import RandomUserContainer from "@/app/explore/_components/random-user-container";
import PostListContainer from "@/app/explore/_components/post/post-list-container";
import PostListContainer from "@/app/explore/_components/post-list-container";

export const metadata = {
metadataBase: new URL("https://mlbb.fyi"),
Expand Down
26 changes: 12 additions & 14 deletions app/profile/_components/profile-tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,24 @@ const ProfileTab: React.FC<ProfileTabProps> = ({
<Tabs
defaultValue="statistics"
value={selectedProfileTab}
className="mt-4 w-full space-y-4 md:mt-0 md:space-y-1.5"
className="mt-3 w-full space-y-3 md:mt-0 md:space-y-1.5"
>
<div className="flex justify-center md:justify-start">
<TabsList className="flex items-baseline space-x-1 ">
{ProfileTabList.map((item, i) => (
<TabsList className="flex w-full items-center justify-center space-x-1.5 md:w-fit md:justify-start ">
{ProfileTabList.map((item, i) => (
<TabsTrigger
value={item.name.toLowerCase()}
onClick={() => setSelectedProfileTab(item.name.toLowerCase())}
key={i}
>
<Link
href={`/profile/${isExistingUser?.username + item.href}`}
key={i}
scroll={false}
>
<TabsTrigger
value={item.name.toLowerCase()}
onClick={() => setSelectedProfileTab(item.name.toLowerCase())}
>
{item.name}
</TabsTrigger>
{item.name}
</Link>
))}
</TabsList>
</div>
</TabsTrigger>
))}
</TabsList>

{children}
</Tabs>
Expand Down

1 comment on commit 9ebdc0a

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for mlbb-fyi ready!

✅ Preview
https://mlbb-ny4ggrx4l-jinjays.vercel.app

Built with commit 9ebdc0a.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.