Skip to content

Commit 0a2104d

Browse files
make tpc members to view on campus offers too (#378) (#379)
2 parents 74f0fc9 + ac70ad9 commit 0a2104d

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

src/components/SideBar/Roles/tpcMember.tsx

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,47 @@ const TpcMemberDashboard = () => {
551551
{/* <SessionDropDown AllSeasons={AllSeasons} /> */}
552552
</div>
553553
</Link>
554+
<Link href={"/admin/oncampus-offers"}>
555+
<div className="hover:bg-slate-600/50 rounded-md my-2 py-2 px-4 text-white">
556+
<div className="flex justify-start gap-3">
557+
<div className="w-5 flex-shrink-0 text-white">
558+
<svg
559+
width="20"
560+
height="20"
561+
viewBox="0 0 24 24"
562+
fill="none"
563+
xmlns="http://www.w3.org/2000/svg"
564+
className="text-white"
565+
>
566+
<path
567+
d="M12 2L13.09 8.26L20 9L13.09 9.74L12 16L10.91 9.74L4 9L10.91 8.26L12 2Z"
568+
fill="currentColor"
569+
/>
570+
<path
571+
d="M19 15L18.09 19.26L12 20L18.09 20.74L19 25L19.91 20.74L26 20L19.91 19.26L19 15Z"
572+
fill="currentColor"
573+
/>
574+
<path
575+
d="M5 15L4.09 19.26L-2 20L4.09 20.74L5 25L5.91 20.74L12 20L5.91 19.26L5 15Z"
576+
fill="currentColor"
577+
/>
578+
</svg>
579+
</div>
580+
<motion.div
581+
initial={{ opacity: 1 }}
582+
animate={context.isOpen ? "open" : "closed"}
583+
transition={{ duration: 0.1 }}
584+
variants={{
585+
closed: { opacity: 0 },
586+
open: { opacity: 1 },
587+
}}
588+
className={`${context.isOpen ? "visible" : "hidden"} flex-1 text-white`}
589+
>
590+
On Campus Offers
591+
</motion.div>
592+
</div>
593+
</div>
594+
</Link>
554595
<Link href={"/admin/dashboard"}>
555596
<div className="hover:bg-slate-600/50 rounded-md my-2 py-2 px-4 cursor-pointer text-white">
556597
<div className="flex justify-start gap-3">

0 commit comments

Comments
 (0)