From 8635ab4b8c85580d3b9a2032a1f471e9b2afcd84 Mon Sep 17 00:00:00 2001 From: vanshavenger Date: Wed, 2 Oct 2024 20:33:47 +0530 Subject: [PATCH] FIX: Add separate cohort 2 and cohort 3 assignment Links --- src/components/profile-menu/ExternalLinks.tsx | 65 +++++++++++++------ 1 file changed, 44 insertions(+), 21 deletions(-) diff --git a/src/components/profile-menu/ExternalLinks.tsx b/src/components/profile-menu/ExternalLinks.tsx index 8a82917db..7fc64b933 100644 --- a/src/components/profile-menu/ExternalLinks.tsx +++ b/src/components/profile-menu/ExternalLinks.tsx @@ -1,33 +1,56 @@ import { SiGithub, SiNotion } from '@icons-pack/react-simple-icons'; import Link from 'next/link'; import React from 'react'; -import { DropdownMenuItem } from '../ui/dropdown-menu'; import { ArrowUpRightFromSquare } from 'lucide-react'; +import { + DropdownMenuItem, + DropdownMenuSub, + DropdownMenuSubContent, + DropdownMenuSubTrigger, +} from '@/components/ui/dropdown-menu'; -const ExternalLinks = () => { - const externalLinks = [ +export default function ExternalLinks() { + const assignmentLinks = [ { href: 'https://github.com/100xdevs-cohort-2/assignments', - label: 'Assignments', - icon: , + label: 'Cohort 2', }, { - href: 'https://projects.100xdevs.com/', - label: 'Slides', - icon: , + href: 'https://github.com/100xdevs-cohort-3/assignments', + label: 'Cohort 3', }, ]; - return externalLinks.map((link) => ( - - -
- {link.icon} - {link.label} -
- -
- - )); -}; -export default ExternalLinks; + return ( + <> + + +
+ + Assignments +
+
+ + {assignmentLinks.map((link) => ( + + + {link.label} + + + + ))} + +
+ + + +
+ + Slides +
+ +
+ + + ); +}