diff --git a/src/components/Cars/AllCars.js b/src/components/Cars/AllCars.js index 3b7dd2b..6bae77b 100644 --- a/src/components/Cars/AllCars.js +++ b/src/components/Cars/AllCars.js @@ -1,6 +1,6 @@ import React, { useEffect, useState } from "react"; import { Link } from "react-router-dom"; -import apiUrl from "../../utils/constants"; +import apiUrl from "../../utils/constants.js"; const AllCars = () => { const [cars, setCars] = useState([]); diff --git a/src/components/Cars/CategoryCars.js b/src/components/Cars/CategoryCars.js index 77306ea..e05ee07 100644 --- a/src/components/Cars/CategoryCars.js +++ b/src/components/Cars/CategoryCars.js @@ -3,7 +3,7 @@ import { useParams } from "react-router-dom"; import location from "../../assets/location.gif"; import Footer from "../Footer/Footer"; import Shimmer from "../Shimmer/Shimmer"; -import apiUrl from "../../utils/constants"; +import apiUrl from "../../utils/constants.js"; const CategoryCars = () => { const { id } = useParams();