Skip to content

Commit 9c7131f

Browse files
authored
Merge pull request #163 from SuperSecureHuman/159-for-registered-events-in-all-events-on-hover-the-button-still-says-register
Fixed Event Card hover bug for Registered Events.
2 parents 56fcde3 + bf04d76 commit 9c7131f

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/app/events/components/EventCard.jsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,19 @@ export default function EventCard({
138138
)
139139
?
140140
(
141+
(secureLocalStorage.getItem("isLoggedIn") && isRegistered == "1")
142+
?
143+
(
144+
<button class="transition ease-in duration-300 inline-flex items-center text-sm font-medium bg-white px-5 py-2 hover:shadow-lg tracking-wider text-black rounded-full ">
145+
<span>Registered</span>
146+
</button>
147+
)
148+
:
149+
(
141150
<button class="transition ease-in duration-300 inline-flex items-center text-sm font-medium bg-white px-5 py-2 hover:shadow-lg tracking-wider text-black rounded-full ">
142151
<span>Register</span>
143152
</button>
153+
)
144154
)
145155
:
146156
(

src/app/team/components/team-member.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function ProfileCard({ name, imgSrc, Position, rollno, email, dept }) {
1919

2020
return (
2121
<div
22-
className={`relative max-w-xs bg-[rgba(0,0,0,0.7)] backdrop-blur-md border border-gray-600 rounded-lg shadow-lg p-4 transition-all duration-300 ease-in-out ${
22+
className={`relative max-w-xs bg-[rgba(0,0,0,0.4)] backdrop-blur-md border border-gray-600 rounded-lg shadow-lg p-4 transition-all duration-300 ease-in-out ${
2323
isHovered ? "shadow-xl" : ""
2424
}`}
2525
onMouseEnter={() => setIsHovered(true)}

0 commit comments

Comments
 (0)