Skip to content

Commit c68ff3c

Browse files
committed
Update AmbassadorCard component to open external link in new tab
- Modified the onClick handler of the 'Become a Member' button to open a job board link in a new tab, enhancing user navigation. - Removed unused code related to opening links in new tabs from the SideContent component for cleaner code.
1 parent 40e5459 commit c68ff3c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

app/(home)/ambassador-dao/page.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,13 @@ const AmbasssadorDao = () => {
8484
<AmbassadorCard
8585
title='Become a Member'
8686
description='Reach 70,000+ talent from one single dashboard'
87-
onClick={() => setOpenAuthModal(true)}
87+
onClick={() =>
88+
window.open(
89+
"https://job-boards.greenhouse.io/avalabs",
90+
"_blank",
91+
"noopener,noreferrer"
92+
)
93+
}
8894
/>
8995
)}
9096
{user?.role !== "AMBASSADOR" && (

components/ambassador-dao/dashboard/SideContent.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ export const AmbassadorCard = ({
5151
description: string;
5252
onClick: () => void;
5353
}) => {
54-
// const openInNewTab = (url: string) => {
55-
// window.open(url, "_blank", "noopener,noreferrer");
56-
// };
5754

5855
return (
5956
<>

0 commit comments

Comments
 (0)