new commit
This commit is contained in:
@@ -58,8 +58,7 @@ export function StaggerContainer({
|
|||||||
return (
|
return (
|
||||||
<motion.div
|
<motion.div
|
||||||
initial="hidden"
|
initial="hidden"
|
||||||
whileInView="visible"
|
animate="visible"
|
||||||
viewport={{ once: true, margin: '-50px' }}
|
|
||||||
variants={{
|
variants={{
|
||||||
hidden: {},
|
hidden: {},
|
||||||
visible: {
|
visible: {
|
||||||
|
|||||||
@@ -269,7 +269,7 @@ export default function Events() {
|
|||||||
// 2. Category Filter check
|
// 2. Category Filter check
|
||||||
if (selectedCategory !== 'All') {
|
if (selectedCategory !== 'All') {
|
||||||
if (selectedCategory === 'Center of Excellence' && !isCenter) return false;
|
if (selectedCategory === 'Center of Excellence' && !isCenter) return false;
|
||||||
if (selectedCategory !== 'Center of Excellence' && item.category !== selectedCategory) return false;
|
if (selectedCategory !== 'Center of Excellence' && item.category.toLowerCase() !== selectedCategory.toLowerCase()) return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 3. Search Query check
|
// 3. Search Query check
|
||||||
@@ -447,7 +447,7 @@ export default function Events() {
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<StaggerContainer className="pb-8">
|
<StaggerContainer key={`${selectedType}-${selectedCategory}-${searchQuery}`} className="pb-8">
|
||||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-7">
|
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-7">
|
||||||
{filteredData.map((club) => {
|
{filteredData.map((club) => {
|
||||||
const IconComponent = (club.icon && CLUB_ICON_MAP[club.icon]) || Atom;
|
const IconComponent = (club.icon && CLUB_ICON_MAP[club.icon]) || Atom;
|
||||||
|
|||||||
Reference in New Issue
Block a user