Add: - app/(application)/(user)/forum/terms.tsx Fix: - app/(application)/(user)/_layout.tsx - app/(application)/(user)/home.tsx - screens/Home/tabsList.ts - service/api-client/api-user.ts ### No Issue
41 lines
912 B
TypeScript
41 lines
912 B
TypeScript
import { ITabs } from "@/components/_Interface/types";
|
|
|
|
export const tabsHome: any = ({acceptedForumTermsAt, profileId}: {acceptedForumTermsAt: Date, profileId: string}) => [
|
|
{
|
|
id: "forum",
|
|
icon: "chatbubble-ellipses-outline",
|
|
activeIcon: "chatbubble-ellipses",
|
|
label: "Forum",
|
|
path: acceptedForumTermsAt ? "/forum" : "/forum/terms",
|
|
isActive: true,
|
|
disabled: false,
|
|
},
|
|
{
|
|
id: "marketplace",
|
|
icon: "cart-outline",
|
|
activeIcon: "cart",
|
|
label: "Marketplace",
|
|
path: "/marketplace",
|
|
isActive: false,
|
|
disabled: true,
|
|
},
|
|
{
|
|
id: "maps",
|
|
icon: "map-outline",
|
|
activeIcon: "map",
|
|
label: "Maps",
|
|
path: "/maps",
|
|
isActive: true,
|
|
disabled: false,
|
|
},
|
|
{
|
|
id: "profile",
|
|
icon: "person-outline",
|
|
activeIcon: "person",
|
|
label: "Profile",
|
|
path: `/profile/${profileId}`,
|
|
isActive: true,
|
|
disabled: false,
|
|
},
|
|
];
|