fix
Desc: -Perubahan minor # No issue
This commit is contained in:
@@ -47,8 +47,6 @@ import { funGetUserProfile } from "../fun/get_user_profile";
|
|||||||
import { USER_PROFILE } from "../models/user_profile";
|
import { USER_PROFILE } from "../models/user_profile";
|
||||||
import AppNotif from "../notif";
|
import AppNotif from "../notif";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// export const dynamic = "force-dynamic"
|
// export const dynamic = "force-dynamic"
|
||||||
// export const revalidate = 0
|
// export const revalidate = 0
|
||||||
|
|
||||||
@@ -61,56 +59,49 @@ export default function HomeView({ user }: { user: USER_PROFILE }) {
|
|||||||
id: 1,
|
id: 1,
|
||||||
name: "Forums",
|
name: "Forums",
|
||||||
icon: <IconMessages size={50} />,
|
icon: <IconMessages size={50} />,
|
||||||
link: ""
|
link: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
name: "Project Collaboration",
|
name: "Project Collaboration",
|
||||||
icon: <IconAffiliate size={50} />,
|
icon: <IconAffiliate size={50} />,
|
||||||
link: ""
|
link: "",
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 3,
|
id: 3,
|
||||||
name: "Voting",
|
name: "Voting",
|
||||||
icon: <IconPackageImport size={50} />,
|
icon: <IconPackageImport size={50} />,
|
||||||
link: ""
|
link: "",
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 4,
|
id: 4,
|
||||||
name: "Event",
|
name: "Event",
|
||||||
icon: <IconPresentation size={50} />,
|
icon: <IconPresentation size={50} />,
|
||||||
link: ""
|
link: "",
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 5,
|
id: 5,
|
||||||
name: "Crowd Funding",
|
name: "Crowd Funding",
|
||||||
icon: <IconHeartHandshake size={50} />,
|
icon: <IconHeartHandshake size={50} />,
|
||||||
link: `/dev/crowd/splash`
|
link: `/dev/crowd/splash`,
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 6,
|
id: 6,
|
||||||
name: "Marketplace",
|
name: "Marketplace",
|
||||||
icon: <IconShoppingBag size={50} />,
|
icon: <IconShoppingBag size={50} />,
|
||||||
link: ""
|
link: "",
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 7,
|
id: 7,
|
||||||
name: "Job Vacancy",
|
name: "Job Vacancy",
|
||||||
icon: <IconBriefcase size={50} />,
|
icon: <IconBriefcase size={50} />,
|
||||||
link: ""
|
link: "",
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 8,
|
id: 8,
|
||||||
name: "Business Maps",
|
name: "Business Maps",
|
||||||
icon: <IconMap2 size={50} />,
|
icon: <IconMap2 size={50} />,
|
||||||
link: ""
|
link: "",
|
||||||
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -152,10 +143,14 @@ export default function HomeView({ user }: { user: USER_PROFILE }) {
|
|||||||
h={100}
|
h={100}
|
||||||
withBorder
|
withBorder
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if(e.link === ""){
|
if (stateUser.Profile === null) {
|
||||||
toast(e.name)
|
return toast("Lengkapi Profile Anda !");
|
||||||
} else {
|
} else {
|
||||||
return router.push(e.link)
|
if (e.link === "") {
|
||||||
|
toast(e.name);
|
||||||
|
} else {
|
||||||
|
return router.push(e.link);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user