new commit

This commit is contained in:
Anbu-dev-creator
2026-08-18 15:32:10 +05:30
parent 154f19d546
commit 2d91f6f5c4
2 changed files with 3 additions and 4 deletions

View File

@@ -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: {

View File

@@ -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;