fix: remove unused useNavigate hook causing TS6133 build error
This commit is contained in:
parent
a1ef9a6baa
commit
4c0539517c
2 changed files with 2 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { useEffect } from 'react'
|
||||
import { useNavigate, Link } from 'react-router-dom'
|
||||
import { Link } from 'react-router-dom'
|
||||
import { motion } from 'motion/react'
|
||||
import { ArrowRight } from 'lucide-react'
|
||||
import ProductCard from '../components/ProductCard'
|
||||
|
|
@ -58,7 +58,6 @@ const cardVariant = {
|
|||
}
|
||||
|
||||
export default function HomePage() {
|
||||
const navigate = useNavigate()
|
||||
|
||||
useEffect(() => {
|
||||
document.title = "Windows ISO Downloader | Official Microsoft Images"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { useState, useEffect } from 'react'
|
||||
import { useNavigate, Link } from 'react-router-dom'
|
||||
import { Link } from 'react-router-dom'
|
||||
import { motion } from 'motion/react'
|
||||
import { Search, ArrowRight } from 'lucide-react'
|
||||
import type { Product } from '../types'
|
||||
|
|
@ -12,7 +12,6 @@ const quickSearches = [
|
|||
]
|
||||
|
||||
export default function ProductsPage() {
|
||||
const navigate = useNavigate()
|
||||
const [products, setProducts] = useState<Product[]>([])
|
||||
const [isLoading, setIsLoading] = useState(true)
|
||||
const [query, setQuery] = useState('')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue