Update Dashboard arm click to support external links
cgen-b5977d1e08ea4fb6bd9a796ecc711d4f
This commit is contained in:
parent
58e1c7f1d9
commit
6c178cc163
2 changed files with 14 additions and 1 deletions
|
|
@ -359,7 +359,11 @@ export default function Dashboard() {
|
||||||
key={arm.id}
|
key={arm.id}
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
navigate(arm.href);
|
if (arm.external) {
|
||||||
|
window.open(arm.href, "_blank");
|
||||||
|
} else {
|
||||||
|
navigate(arm.href);
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
className="group relative overflow-hidden"
|
className="group relative overflow-hidden"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,15 @@ export default function Index() {
|
||||||
link: "/corp",
|
link: "/corp",
|
||||||
audience: "Enterprise clients",
|
audience: "Enterprise clients",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "Explore & Learn",
|
||||||
|
description: "Open source projects, educational workshops, and community resources",
|
||||||
|
icon: BookOpen,
|
||||||
|
color: "from-red-500 to-pink-500",
|
||||||
|
link: "https://aethex.foundation",
|
||||||
|
audience: "Developers & learners",
|
||||||
|
external: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: "Join the Network",
|
title: "Join the Network",
|
||||||
description: "Professional networking, job board, and portfolio showcase for Roblox devs",
|
description: "Professional networking, job board, and portfolio showcase for Roblox devs",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue