diff --git a/React/src/pages/components/VehiclesMain.js b/React/src/pages/components/VehiclesMain.js index dd5c089..6f8cfc5 100644 --- a/React/src/pages/components/VehiclesMain.js +++ b/React/src/pages/components/VehiclesMain.js @@ -1,7 +1,6 @@ import React, { useState, useEffect } from "react"; import { useSelector } from "react-redux"; import * as apiService from "../../services/apiService"; -import { prettifyJson } from "../../utils/jsonUtils"; import Heading1 from "./Heading1"; import Button from "./Button"; import Table from "./table/Table"; @@ -50,6 +49,7 @@ const VehiclesMain = () => { useEffect(() => { getVehicles(); + // eslint-disable-next-line }, []); async function getVehicles() { @@ -75,14 +75,6 @@ const VehiclesMain = () => { - - {/* */} ) : (

diff --git a/React/src/pages/components/table/EditBtns.js b/React/src/pages/components/table/EditBtns.js index f8e71a6..66065e2 100644 --- a/React/src/pages/components/table/EditBtns.js +++ b/React/src/pages/components/table/EditBtns.js @@ -5,9 +5,9 @@ import { BsThreeDots } from "react-icons/bs"; const EditBtns = () => { return (
- - - + + +
); }; diff --git a/React/src/pages/components/table/Table.js b/React/src/pages/components/table/Table.js index 430c356..953e732 100644 --- a/React/src/pages/components/table/Table.js +++ b/React/src/pages/components/table/Table.js @@ -5,6 +5,7 @@ import TableData from "./TableData"; const Table = ({ vehicleData }) => { function getType(type) { + // eslint-disable-next-line switch (type) { case 1: return "Sedan"; diff --git a/React/src/utils/jsonUtils.js b/React/src/utils/jsonUtils.js deleted file mode 100644 index fac82df..0000000 --- a/React/src/utils/jsonUtils.js +++ /dev/null @@ -1,3 +0,0 @@ -export const prettifyJson = (value) => { - return JSON.stringify(value, null, 2); -} \ No newline at end of file