fix: add missing imports for useEffect and framer-motion in companies page

This commit is contained in:
Redbull Deployer 2026-03-01 19:13:44 -06:00
parent 56f848e15d
commit f9994a48ae

View file

@ -1,12 +1,13 @@
"use client" "use client"
import { useState } from "react" import { useState, useEffect } from "react"
import { Navbar } from "@/components/navbar" import { Navbar } from "@/components/navbar"
import { Footer } from "@/components/footer" import { Footer } from "@/components/footer"
import { Search, MapPin, Users, Briefcase, Star, TrendingUp, Building2, Globe, Heart, Filter } from "lucide-react" import { Search, MapPin, Users, Briefcase, Star, Building2, Filter } from "lucide-react"
import Image from "next/image" import Image from "next/image"
import Link from "next/link" import Link from "next/link"
import { useTranslation } from "@/lib/i18n" import { useTranslation } from "@/lib/i18n"
import { motion, AnimatePresence } from "framer-motion"
interface Company { interface Company {
id: number id: number
@ -42,7 +43,7 @@ export default function CompaniesPage() {
setCurrentImageIndex((prev) => (prev + 1) % heroImages.length) setCurrentImageIndex((prev) => (prev + 1) % heroImages.length)
}, 5000) }, 5000)
return () => clearInterval(timer) return () => clearInterval(timer)
}, []) }, [heroImages.length])
const industries = [ const industries = [
"Todas", "Todas",