From ca2db1497e59e92e7aff3b2ffff767294474e0b5 Mon Sep 17 00:00:00 2001 From: Ranjith Date: Wed, 24 Jan 2024 18:54:27 +0530 Subject: [PATCH] Fix imports --- src/components/Cars/AllCars.js | 2 +- src/components/Cars/CategoryCars.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();